Failed to compile with 2 errors 20:57:29 [eslint] ESLint is not a constructor You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file. Error: Child compilation failed: [eslint] ESLint is not a constructor - child-compiler.js:169 [shop]/[html-webpack-plugin]/lib/child-compiler.js:169:18 - Compiler.js:551 finalCallback [shop]/[webpack]/lib/Compiler.js:551:5 - Compiler.js:577 [shop]/[webpack]/lib/Compiler.js:577:11 - Compiler.js:1199 [shop]/[webpack]/lib/Compiler.js:1199:17 - task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 - task_queues:64 runNextTicks node:internal/process/task_queues:64:3 - timers:447 process.processImmediate node:internal/timers:447:9 ERROR in [eslint] ESLint is not a constructor ERROR in Error: Child compilation failed: [eslint] ESLint is not a constructor - child-compiler.js:169 [shop]/[html-webpack-plugin]/lib/child-compiler.js:169:18 - Compiler.js:551 finalCallback [shop]/[webpack]/lib/Compiler.js:551:5 - Compiler.js:577 [shop]/[webpack]/lib/Compiler.js:577:11 - Compiler.js:1199 [shop]/[webpack]/lib/Compiler.js:1199:17 - task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 - task_queues:64 runNextTicks node:internal/process/task_queues:64:3 - timers:447 process.processImmediate node:internal/timers:447:9 1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) webpack compiled with 3 errors
时间: 2024-04-27 22:22:25 浏览: 316
解决vue安装less报错Failed to compile with 1 errors的问题
这是一个Webpack编译错误,并且似乎与ESLint有关。错误消息指出ESLint不是一个构造函数。这可能是因为您的配置文件中有一些问题,或者您的依赖项中存在一些不兼容的版本。您可以尝试更新您的依赖项,或者检查您的Webpack配置文件是否正确设置了ESLint插件。如果您使用的是Vue CLI,则可以尝试执行`vue add eslint`来添加ESLint插件。您还可以使用特殊的注释来禁用某些警告,例如`// eslint-disable-next-line`来忽略下一行,或者`/* eslint-disable */`来忽略文件中的所有警告。
阅读全文