vue-shopping
vue-shopping copied to clipboard
运行时报错
ERROR in ./~/.6.2.5@babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false!./~/.8.5.4@vue-loader/lib/selector.js?type=script&index=0!./src/views/goods/catedetail.vue Module not found: Error: Cannot resolve 'file' or 'directory' ../../../node_modules/vue-swipe/lib/vue-swipe.css in /Users/liujiawen/project/webProject/vue-shopping/src/views/goods @ ./~/.6.2.5@babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false!./~/.8.5.4@vue-loader/lib/selector.js?type=script&index=0!./src/views/goods/catedetail.vue 7:0-60
ERROR in ./~/.6.2.5@babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false!./~/.8.5.4@vue-loader/lib/selector.js?type=script&index=0!./src/views/timelimit/head.vue Module not found: Error: Cannot resolve 'file' or 'directory' ../../../node_modules/vue-swipe/lib/vue-swipe.css in /Users/liujiawen/project/webProject/vue-shopping/src/views/timelimit @ ./~/.6.2.5@babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false!./~/.8.5.4@vue-loader/lib/selector.js?type=script&index=0!./src/views/timelimit/head.vue 7:0-60
ERROR in ./src/views/goods/swipe.vue Module not found: Error: Cannot resolve 'file' or 'directory' ../../../node_modules/vue-swipe/lib/vue-swipe.css in /Users/liujiawen/project/webProject/vue-shopping/src/views/goods @ ./src/views/goods/swipe.vue 3:0-154 Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 22.7 kB 0
后来怎么解决了?
怎么解决的?
跟我一样的错误。你后来解决了吗
把所有文件中的../../../node_modules/vue-swipe/lib/vue-swipe.css 改为../../../node_modules/vue-swipe/dist/vue-swipe.css(一共有三个文件要改)全文搜索一下或者到错误提示的文件去找一下就ok了
src-views-goods-catedetail.vue & swipe.vue src-views-timelimit-head.vue 为什么有这个坑😭
解决办法楼上已经给了,可以把项目跑起来了
感谢5L 已解决
node_modules/vue-swipe/lib/vue-swipe.css 改为../../../node_modules/vue-swipe/dist/vue-swipe.css(
我查找出来就是dist这样的 还是运行不了呢
感谢5L