[英]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.我为这个错误搜索了 1 个小时,但仍然没有找到修复方法。
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!谢谢!
Make sure you have vue-loader and vue-template-compiler in the dev dependencies in package.json file.确保 package.json 文件中的开发依赖项中有 vue-loader 和 vue-template-compiler。
"devDependencies": {
....
"vue": "^2.6.11",
"vue-loader": "^15.5.1",
"vue-template-compiler": "^2.6.11"
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.