[Vuejs]-Webpack throws error when compiling simple Vue file

0👍

Updating the vue-loader module did the trick, through the task runner was still showing an error it was building correctly when webpack –watch –color was ran in powershell:

npm install vue-loader@14.2.2

https://github.com/vuejs/vue-loader/issues/1177

…the problem in Visual Studio was that Task Runner was using the webpack in node_modules/.bin folder. To rectify this, go to Tools -> Options -> Projects and Solutions -> Web Package Management and move the $(PATH) entry to the top of the list (as per Task Runner Configuration Missing in Visual Studio 2017)

Leave a comment