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

Packaged errors when using webpack #6

Open
keifergu opened this issue Apr 30, 2017 · 0 comments
Open

Packaged errors when using webpack #6

keifergu opened this issue Apr 30, 2017 · 0 comments

Comments

@keifergu
Copy link

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.

keifergu added a commit to keifergu/jsqrcode that referenced this issue Apr 30, 2017
Use `eval` to avoid the checking when build.
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

1 participant