Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR TypeError: Cannot read property 'requestDevice' of undefined #39

Open
geethesh-designway opened this issue Mar 24, 2021 · 1 comment

Comments

@geethesh-designway
Copy link

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)
@deryfebriantara
Copy link

your production url have to be https.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants