vue编译错误—————— ERROR Failed to compile with 1 error18:11:25

This relative module was not found:

  • ./components/Login.vue in ./src/router/index.js

[webpack.Progress] 95% emitting
[webpack.Progress] 95% emitting HtmlWebpackPlugin
[webpack.Progress] 95% emitting CopyPlugin
[webpack.Progress] 98% after emitting
[webpack.Progress] 98% after emitting CopyPlugin
[webpack.Progress] 98% after emitting vue-cli-dashboard-plugin
[webpack.Progress] 100%

WARN
Couldn't parse bundle asset "E:\java\sportplay-front\vuesport\dist\js\chunk-vendors.js".
Analyzer will use module sizes from stats file.

原因是导入组件的文件路径拼写错误import Login from '../components/Login.vue'

Q.E.D.


No Pain,No Gain~