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

require issue #18

Open
vwasteels opened this issue Oct 7, 2015 · 3 comments
Open

require issue #18

vwasteels opened this issue Oct 7, 2015 · 3 comments

Comments

@vwasteels
Copy link

Hello !

I just installed GM + barcode this way :

brew install graphicsmagick
npm install --save barcode

I'm trying to use it this way :

var barcode = require('barcode');

barcode('ean13', {
    data: myEan13,
    width: 400,
    height: 100,
});

but I get this error in the browser console :

Uncaught Error: Cannot find module './lib/ean13'

I verified in the node_modules/barcode folder, the file ./lib/ean13s exists ...

Any idea ?
Thanks !!

@samt
Copy link
Owner

samt commented Oct 24, 2015

Which version of node are you using?

@vwasteels
Copy link
Author

2.7.4
But now I switched to another plugins using jquery :)

Thanks anyway !!

@lznt
Copy link

lznt commented Jan 27, 2016

Same here! Can't use cos of require error.

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

3 participants