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...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 inwebpack.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...