Closed brunal closed 9 years ago
I don't think you are doing anything wrong. I can reproduce the bug as well.
What strange is that it works in node. When you look at dist
file version is required here, it receives index 63 in the browserify metadata and is exported under the same number here. It is the last module in the list.
Trying to find where the bug is.
Opened an issue in the browserify repository: https://github.com/substack/node-browserify/issues/1140
should be fixed in v0.7.5
Thank you!
Hi, I did
npm install vivagraphjs
Then I included that way in my script
main.js
:var Viva = require("vivagraphjs")
However when I run
browserify main.js > bundle.js
I get the following stacktrace:This is because in
node_modules/vivagraphjs/dist/vivagraph.js
there is arequire("./version.js")
which is present insrc
but not indist
.What am I doing wrong?
Thanks