最近在用粒谷商城项目练手,学习到P59时引入品牌两个vue文件,重启(npm run dev)项目报错:
ERROR Failed to compile with 2 errors 12:11:59
This dependency was not found:
* @/components/upload/singleUpload in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/modules/product/brand-add-or-update.vue
To install it, you can run: npm install --save @/components/upload/singleUpload
This relative module was 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
看到这种报错不要慌,仔细看两个错。第一个错是说在brand-add-or-update.vue没有没找到依赖singleUpload:具体信息如下:
“This dependency was not found: @/components/upload/si