npm run dev Error: Cannot find module build/webpack.dev.conf.js
npm run dev Error: Cannot find module build/webpack.dev.conf.js
February 21, 2018
Ran into an issue where I kept getting an ‘Error: Cannot find build/webpack.dev.conf.js’ when trying to run ‘npm run dev’ on a Vue.js webpack project, like the following:
|
|
The problem was that I was checking out a folder that had a lot of different directories, with code written in different languages, and the top level .gitignore included ‘build/’ for Python. Either add ‘!build/’ to a .gitignore in the root folder of the node project when checking it in…or do a better job separating projects and folders like a sensible person.