Skip to content

Packaged errors when using webpack #6

@keifergu

Description

@keifergu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions