re: Build a Todo App with Node.Js, ExpressJs, MongoDB and VueJs – Part 2 VIEW POST


Hi Samuel,
while running build i get: "ERROR in ./public/src/main.js
Module not found: Error: Can't resolve 'vue'"

I looked in the github and saw there is a Vue.js file. how did you add this to the project or did the build take care of this for you?

I have web pack issues too, but ended up manually creating webpack.cofig.js and c+p from git, but then got above error.

thanks again for content


Hi AshGale,

We could import Vue using NPM without defining an alias in webpack.config.js. The problem is NPM provides runtime only build where template compiler is not available. One could fix this by downloading an official Vue package and defining an alias in webpack.config.js. Check this github.com/vuejs-templates/webpack...

code of conduct - report abuse