Fail to build ....
Closed this issue · 1 comments
jiapei100 commented
- ERROR from
npm run dev
ERROR Failed to compile with 1 errors 1:20:37 PM
This relative module was not found:
* ../productDetail/ProductDetail in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/goods/Goods.vue
- ERROR from
npm run build
➜ mt-app git:(master) ✗ npm run build
> mt-vue@1.0.0 build ....../mt-app
> node build/build.js
Hash: 94b93dc27db0d63758ec
Version: webpack 3.11.0
Time: 5753ms
Asset Size Chunks Chunk Names
static/img/anonymity.3f9b695.png 21.7 kB [emitted]
static/js/app.4e54feed9828b92bf09c.js 27.1 kB 0 [emitted] app
static/js/vendor.1bec2fdfddcc0edb6dd5.js 153 kB 1 [emitted] vendor
static/js/manifest.2ae2e69a05c33dfc65f8.js 799 bytes 2 [emitted] manifest
static/css/app.9739a14ca25329b5dad0e18523405820.css 83.6 kB 0 [emitted] app
index.html 557 bytes [emitted]
static/css/reset.css 1.09 kB [emitted]
ERROR in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/goods/Goods.vue
Module not found: Error: Can't resolve '../productDetail/ProductDetail' in '....../mt-app/src/components/goods'
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/goods/Goods.vue 80:0-59
@ ./src/components/goods/Goods.vue
@ ./src/main.js
Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mt-vue@1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mt-vue@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! ~/.npm/_logs/2018-12-19T21_21_09_406Z-debug.log
jiapei100 commented
Solved:
file /src/components/goods/Goods.vue , line 80: ProductDetail -> productDetail