webpack4.0 vue 打包 报错 These relative modules were not found:
webpack4.0 vue 打包 报错 These relative modules were not found:
各种依赖都升级后还是报错
Failed to compile with 13 errors 10:04:45
These relative modules were not found:
* ./button.vue?vue&type=style&index=0&id=c6f153ca&lang=scss&scoped=true& in ./src/components/common/button/button.vue
* ./assets/style/reset.css in ./src/main.js
* ./demo.vue?vue&type=style&index=0&id=6286b906&lang=scss&scoped=true& in ./src/views/demo.vue
* ./App.vue?vue&type=style&index=0&lang=scss& in ./src/App.vue
* ./debug.vue?vue&type=style&index=0&id=5621ebfa&lang=scss&scoped=true& in ./src/components/common/debug/debug.vue
* ./index.vue?vue&type=style&index=0&id=791ac323&lang=scss&scoped=true& in ./src/components/common/share/src/index.vue
* ./Home.vue?vue&type=style&index=0&lang=scss& in ./src/views/Home.vue
* ./cell.vue?vue&type=style&index=0&lang=scss& in ./src/components/common/list/cell.vue
* ./loading.vue?vue&type=style&index=0&id=633762d5&lang=scss&scoped=true& in ./src/components/common/loading/loading.vue
* ./list.vue?vue&type=style&index=0&lang=scss& in ./src/components/common/list/list.vue
* ./index.vue?vue&type=style&index=0&id=70435e80&lang=scss&scoped=true& in ./src/components/common/app-header/index.vue
* ./toast.vue?vue&type=style&index=0&lang=scss& in ./src/components/common/toast/src/toast.vue
* ./message-box.vue?vue&type=style&index=0&lang=scss& in ./src/components/common/message-box/src/message-box.vue
最后在解析样式loader里加了 include:[]不报错了
{
test: /\.(css|scss|sass)$/,
include:[],
loader: ['style-loader', 'css-loader', 'sass-loader', 'postcss-loader']
}
不知道是什么原因,是不是因为某些依赖包没有升级好?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论