项目运行失败
来源:2-6 ESLint 与 Prettier 配合解决代码格式问题

慕雪5447353
2023-10-04
ERROR Failed to compile with 1 error 上午11:30:47
error in ./node_modules/@intlify/core-base/dist/core-base.cjs
Module parse failed: Unexpected token (1353:23)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| if (shared.isString(source)) ;
| else {
if (source.loc?.source) {
| return source.loc.source;
| }
@ ./node_modules/@intlify/core-base/index.js 6:19-50
@ ./node_modules/vue-i18n/dist/vue-i18n.mjs
@ ./src/i18n/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.1.7:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
1回答
-
Sunday
2023-10-05
你好
这个看错误应该是依赖库的问题,可以通过 cnpm i 重新安装下依赖看看(安装之前,删除 node_modules)
00
相似问题