instascan
instascan copied to clipboard
Uncaught Error: only one instance of babel-polyfill is allowed
I've copied the same code on sample, and the camera is on ( I can see the webcam light), but I can't see the preview, and is not scanning the qrCode. On the console there's two error:
instascan.min.js:48 Uncaught Error: only one instance of babel-polyfill is allowed
at Object.
instascan.min.js:9 Uncaught (in promise) TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.
at e.
Try using my fork https://github.com/GeorgeD19/instascan
I've swapped out babel-polyfill for idempotent-babel-polyfill so it should be okay.
I am getting this same issue. @GeorgeD19 do you have a minified version of your fork available?
@danperks I've made a commit so dist/instascan.min.js is now available. I've updated docs/index.html to show it in action.
@GeorgeD19 Thank for creating dist/instascan.min.js, which works great. I found that if I navigate await from a page using the instascan and come back, while the video feed still continues, an Invalid asm.js: Type mismatch in assignment VM117 instascan.min.js:18
shows up in the console. I can provide a screenshot of the minified jump if that useful. I though I would mention it here although I am unsure of the root cause and appropriate repo to raise the issue.