ng-thermal-print icon indicating copy to clipboard operation
ng-thermal-print copied to clipboard

ERROR TypeError: Cannot read property 'requestDevice' of undefined

Open geethesh-designway opened this issue 3 years ago • 1 comments

When I run ng build --prod and try connecting to the printer using USB. I get the following error. Any help would be really appreciated

main-es2015.29df4fa88fc46ca19de6.js:1 ERROR TypeError: Cannot read property 'requestDevice' of undefined
    at t._subscribe (main-es2015.29df4fa88fc46ca19de6.js:1)
    at t._trySubscribe (main-es2015.29df4fa88fc46ca19de6.js:1)
    at t.subscribe (main-es2015.29df4fa88fc46ca19de6.js:1)
    at t.requestUsb (10-es2015.f3f2db08656073f812c2.js:1)
    at 10-es2015.f3f2db08656073f812c2.js:1
    at Ks (main-es2015.29df4fa88fc46ca19de6.js:1)
    at i (main-es2015.29df4fa88fc46ca19de6.js:1)
    at HTMLButtonElement.<anonymous> (main-es2015.29df4fa88fc46ca19de6.js:1)
    at l.invokeTask (polyfills-es2015.1c036d218568a752e64f.js:1)
    at Object.onInvokeTask (main-es2015.29df4fa88fc46ca19de6.js:1)

geethesh-designway avatar Mar 24 '21 06:03 geethesh-designway

your production url have to be https.

deryfebriantara avatar Jul 27 '21 10:07 deryfebriantara