Error information :
ERROR in ./~/.0.0.7@jsqrcode/src/qrcode.js
Module not found: Error: Can't resolve 'canvas' in '/mnt/c/Users/Keifer.Gu/Desktop/Document/WorkSpace/test/node_modules/.0.0.7@jsqrcode/src
Version info:
- webpack ; 2.4.1
- jsqrcode: 0.0.7
- OS: windows 10
What I did:
I use webpack to build JavaScript files, building environment is node, but the operating environment is the browser. So in the packaging of the time, jsqrcode wrong to judge the environment.
Error information :
Version info:
What I did:
I use webpack to build JavaScript files, building environment is node, but the operating environment is the browser. So in the packaging of the time,
jsqrcodewrong to judge the environment.