require issue
vwasteels opened this issue · 3 comments
vwasteels commented
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 commented
Which version of node are you using?
vwasteels commented
2.7.4
But now I switched to another plugins using jquery :)
Thanks anyway !!
lznt commented
Same here! Can't use cos of require error.