ERROR in ./node_modules/_babel-loader@7.1.4@babel-loader/lib!./node_modules/_vux-loader@1.2.9@vux-loader/src/script-loader.js!./node_modules/_vue-loader@13.7.2@vue-loader/lib/selector.js?type=script&index=0!./src/views/Live.vueModule not found: Error: Can't resolve '@/components/ErrorPage' in '/home/project/src/views' @ ./node_modules/_babel-loader@7.1.4@babel-loader/lib!./node_modules/_vux-loader@1.2.9@vux-loader/src/script-loader.js!./node_modules/_vue-loader@13.7.2@vue-loader/lib/selector.js?type=script&index=0!./src/views/Live.vue 14:0-47 @ ./src/views/Live.vue @ ./src/router/index.js @ ./src/main.js(...同樣的錯誤還有十幾條)在本地測試環(huán)境 npm run build 都正常, 但是一旦放到服務(wù)器上執(zhí)行 npm run build 每個模塊都會報錯,是服務(wù)器上什么配置問題么?另外提一個點我的每個組件都是以這樣的形式編寫的├── components │ ├── componentA│ │ ├── Index.vue引用的時候的語法是:import @/components/componentA
vue 項目 npm run build 后報錯 Module not found
12345678_0001
2018-07-08 15:14:14