-
Notifications
You must be signed in to change notification settings - Fork 687
Cannot find module 'underscore' when running gulp production #87
Comments
maybe you have corrupted modules? try removing node_modules folder and do npm install again |
After a bit of testing, I determined that this error occurs if I do not have
with:
the build completes successfully. So, am I doing something else wrong with regard to the loading of I referenced this during my troubleshooting: https://github.com/substack/node-browserify#brequirefile-opts I should also note that it appears that listing |
Yeah, I saw this happen to a friend at work, but I couldn't replicate it on my machine. Might have something to do with minor version differences. I'll definitely look into it. Your |
Thanks for the reply. I've run my starter kit (which borrows liberally from your examples here - thanks!!!) on several Macs and Windows machines, and everything is cool as long as I use |
👍 |
Was able to reproduce it after upgrading node and npm, killing my node_modules folder and running Eventually I need to remove that backbone/underscore example. I think it's more confusing than helpful at this point. Maybe move a note about that edge case into the wiki instead. |
* upstream/master: (39 commits) Remove unused require in watch.js Update comment about watchify bug Minor grammatical fix in page.js comments Update README.md Remove unused folder/files Add missing semicolons Update Readme w/ Karma info Move tests to __test__ folder Run karma tests as part of production task Update karma test example Set up karma Fix vigetlabs#87 Add iconFont task to production, make paths relative Update README and template w/font Update iconFont task with new implementation Copy over new icon-font task files Icon task cleanup Add comment to icons partial and template Optimize example svgs Update README ...
Got this resolved by fixing the path of underscore in packages.json:
|
I get the following error when running the production build
Do you not get this error when you run the production gulp task?
The text was updated successfully, but these errors were encountered: