简体   繁体   English

Vue 模块构建失败(来自 ./node_modules/vue-loader/lib/loaders/templateLoader.js)

[英]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.

相关问题 Vue - 模块构建失败(来自./node_modules/vue-loader/lib/loaders/templateLoader.js):语法错误:意外令牌(13:1080) - Vue - Module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js): SyntaxError: Unexpected token (13:1080) 模块构建失败(来自 ./node_modules/babel-loader/lib/index.js)Vue Js - Module build failed (from ./node_modules/babel-loader/lib/index.js) Vue Js 模块构建失败(来自./node_modules/vue-loader/dist/index.js):TypeError:无法读取 Object.loader 未定义的属性“样式” - Module build failed (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot read property 'styles' of undefined at Object.loader {“ transforms”:{}}}!./ node_modules / vue-loader / lib / selector.js错误编译模板: - {“transforms”:{}}}!./node_modules/vue-loader/lib/selector.js Error compiling template: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/table.vue 中的错误 - ERROR in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/table.vue 错误:模块构建失败(来自 ./node_modules/babel-loader/lib/index.js):语法错误: - Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: vuejs/eslint-plugin-vue 模块构建失败(来自./node_modules/eslint-loader/dist/cjs.js):错误:找不到模块'eslint' - vuejs/eslint-plugin-vue Module build failed (from ./node_modules/eslint-loader/dist/cjs.js): Error: Cannot find module 'eslint' 如何修复“模块构建失败(来自./node_modules/postcss-loader/src/index.js)” - How to fix “Module build failed (from ./node_modules/postcss-loader/src/index.js)” 模块构建失败(来自 ./node_modules/eslint-loader/index.js):错误:找不到模块“eslint/lib/formatters/stylish” - Module build failed (from ./node_modules/eslint-loader/index.js): Error: Cannot find module 'eslint/lib/formatters/stylish' 从 node_modules 导入 vue js - vue js import from node_modules
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM