在我的 vue 项目中运行 npm run build 时,我得到以下信息。如有必要,很乐意提供更多信息。
错误:子编译失败: 模块构建失败(来自 ./node_modules/html-webpack-plugin/lib/loader.js): 语法错误:意外的标记 '.'
功能
lodash.js:14942 [应用]/[lodash]/lodash.js:14942:16
lodash.js:487 适用 [应用]/[lodash]/lodash.js:487:27
lodash.js:15326 [应用]/[lodash]/lodash.js:15326:16
lodash.js:489 适用 [应用]/[lodash]/lodash.js:489:27
lodash.js:6627 [应用]/[lodash]/lodash.js:6627:16
lodash.js:14941 Function.template [应用]/[lodash]/lodash.js:14941:20
语法错误:意外的标记“.”
compiler.js:79 [app]/[html-webpack-plugin]/lib/compiler.js:79:16
Compiler.js:343 [app]/[webpack]/lib/Compiler.js:343:11
Compiler.js:681 [app]/[webpack]/lib/Compiler.js:681:15
Hook.js:154 AsyncSeriesHook.lazyCompileHook [app]/[tapable]/lib/Hook.js:154:20
Compiler.js:678 [app]/[webpack]/lib/Compiler.js:678:31
Hook.js:154 AsyncSeriesHook.lazyCompileHook [app]/[tapable]/lib/Hook.js:154:20
编译.js:1423 [app]/[webpack]/lib/Compilation.js:1423:35
Hook.js:154 AsyncSeriesHook.lazyCompileHook [app]/[tapable]/lib/Hook.js:154:20
编译.js:1414 [app]/[webpack]/lib/Compilation.js:1414:32
Hook.js:154 AsyncSeriesHook.lazyCompileHook [app]/[tapable]/lib/Hook.js:154:20
编译.js:1409 [app]/[webpack]/lib/Compilation.js:1409:36