错误信息如下:
ERROR Failed to compile with 1 errors 16:53:22

error in ./node_modules/vue-i18n/src/util.js

Module parse failed: Unexpected token (26:25)
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
| */
|

export function warn (msg: string, err: ?Error): void {
| if (typeof console !== ‘undefined’) {
| console.warn(’[vue-i18n] ’ + msg)

@ ./src/store/modules/user.js 2:0-42
@ ./src/store/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.43.160:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
这个问题主要在于导入其他包的时候要么引用错误、要么引用路径出问题, vue没有检查出来的导入的路径,在这里插入图片描述
比如图中灰色就是没用引用(用的是webstorm黑色格调, 白色就不知道了) 将他删除就可以了,或者导入正确的路径。
在这里插入图片描述
在这里插入图片描述

Logo

前往低代码交流专区

更多推荐