barcode
barcode copied to clipboard
require issue
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 !!
Which version of node are you using?
2.7.4 But now I switched to another plugins using jquery :)
Thanks anyway !!
Same here! Can't use cos of require error.