为什么 postcss-merge-rules 版本给我一个错误 Angular 5 - Webpack [英] Why postcss-merge-rules vesion give me an error Angular 5 - Webpack

查看:23
本文介绍了为什么 postcss-merge-rules 版本给我一个错误 Angular 5 - Webpack的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

postcss 插件错误

这是我尝试 ng build --prod 时的日志,我使用 angular Universal 只会给我引导程序和字体真棒的错误.

This a log when I tried a ng build --prod, I' using angular universal only give me that error with bootstrap and font-awesome.

10% building modules 4/6 modules 2 active ...ules/bootstrap/dist/css/bootstrap.cssUnknown error from PostCSS plugin. Your current PostCSS version is 6.0.17, but postcss-merge-rules uses 5.2.18. Perhaps this i 55% building modules 380/383 modules 3 active ...ules/bootstrap/dist/css/bootstrap.cssUnknown error from PostCSS plugin. Your current PostCSS version is 6.0.17, but postcss-merge-rules uses 5.2.18. Perhaps this is the source of the error below. 

推荐答案

我遇到了同样的问题,你应该将你的 angular cli 版本更新到最新的测试版,运行这个命令:

I had the same problem, you should update your angular cli version to the latest beta, run this command:

首先全局安装:

npm install -g @angular/cli@1.7.0-beta.1

//那么你应该更新你当前的项目:

// then you should update your current project:

npm install --save-dev @angular/cli@1.7.0-beta.1
 

这篇关于为什么 postcss-merge-rules 版本给我一个错误 Angular 5 - Webpack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆