vue启动报错找不到模块,但是路径都是正确的,已经一天了解决不了,大家来围观,这种问题要怎么解决These relative modules were not found:

  • ../common/category-cascader in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/modules/product/
    brand.vue
  • ./components/upload/singleUpload in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/modules/pro
    duct/brand-add-or-update.vue

    img

img

你在index.js配置的vue路由路径以及文件名是否都是正确的,仔细检查一下

你的文件路径错误,引入文件的路径不对

../common/category-cascader,你这里引用的路径没有加文件后缀名,如果你的配置里没有这个功能,那么需要加上后缀名

/common/category-cascader路径不太对