ng-thermal-print
ng-thermal-print copied to clipboard
ERROR TypeError: Cannot read property 'requestDevice' of undefined
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)
your production url have to be https.