ERROR Failed to compile with 1 error 下午10:06:45
error in ./node_modules/vue-router/src/util/path.js
Module parse failed: Unexpected token (4:10)
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 resolvePath (
> relative: string,
| base: string,
| append?: boolean
@ ./src/router/index.js 11:0-55
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.0.193:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
翻译一下,
它在说某个模块的错误,然后我发现我没有使用这个模块
错误在路由那边
发现这两个东西莫名其妙跑出来并引用。
检查了package.json文件,的确没有下载这个模块,把那两行删掉,报错解决
总结:报错哪个模块,就检查哪个模块的下载的版本、使用的情况。