Created
July 5, 2013 05:11
-
-
Save kumavis/5931964 to your computer and use it in GitHub Desktop.
Browserify blowing up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:91 | |
var dir = path.resolve(x, pkg.main); | |
^ | |
TypeError: Cannot read property 'main' of undefined | |
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:91:54 | |
at load (/usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:54:43) | |
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:60:22 | |
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:16:47 | |
at Object.oncomplete (fs.js:107:15) |
Author
kumavis
commented
Jul 5, 2013
changing
if (exts.length === 0) return cb(null, undefined);
to
if (exts.length === 0) return cb(null, undefined, pkg);
seems to have solved the problem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment