instascan
instascan copied to clipboard
Using ES6 imports/exports since require('instascan') fails
I need to able to use import
statement
Using require('instascan')
fails, raising an error
This dependency was not found:
fs in ./node_modules/instascan/src/zxing.js
To install it, you can run: npm install --save fs
Same problem
FWIW, looks like this library has ES6 module support https://github.com/cozmo/jsQR#npm
This issue still not solved? well, i will use other library
I had the same problem and took action to made a build with UMD support. https://github.com/rubenspgcavalcante/instascan-umd
Can be used with require/import statements