Vader
Vader

Reputation: 111

Vue module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js)

I google like 1 hour for this error and still found no fix.

Anyone have any idea why this happen and how can I fix it?

Here it is the full error message:

 ERROR  Failed to compile with 1 errors  
 Module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
 RangeError: Invalid string length

Thank you!

Upvotes: 3

Views: 17105

Answers (1)

Mitin Sharma
Mitin Sharma

Reputation: 31

Make sure you have vue-loader and vue-template-compiler in the dev dependencies in package.json file.

"devDependencies": {
    ....
    "vue": "^2.6.11",
    "vue-loader": "^15.5.1",
    "vue-template-compiler": "^2.6.11"
},

Upvotes: 3

Related Questions