Module build failed (from ./node_modules/postcss-loader/src/index.js)
时间: 2023-09-28 20:06:38 浏览: 276
回答: 根据你提供的引用内容,报错信息是"Module build failed (from ./node_modules/postcss-loader/src/index.js)"。这个错误通常是由于postcss-loader的版本不兼容导致的。根据\[1\]中提供的信息,autoprefixer插件需要使用PostCSS 8版本。你可以参考链接中的迁移指南来解决这个问题。另外,根据\[2\]中提供的信息,你还需要确保正确安装了uView,并在相应的文件中引入了uView的样式。如果你在App.vue中引入样式时遗漏了标点符号,也可能导致编译失败。请检查你的代码并注释掉App.vue中引入样式的部分,确保语法正确。
#### 引用[.reference_title]
- *1* [Module build failed (from ./node_modules/postcss-loader/dist/cjs.js): Error: PostCSS plugin autopref](https://blog.csdn.net/qq_44035882/article/details/129267686)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [vue 引入 uView 报错:Module build failed (from ./node_modules/postcss-loader/src/index.js): Syntax...](https://blog.csdn.net/weixin_43900414/article/details/113698457)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文