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

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

问题描述

postcss插件错误

这是我尝试ng build --prod时的日志,我使用的是通用角度,这只会给我有关bootstrap和font-awesome的错误.

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版本更新为最新的beta,运行以下命令:

I had the same problem, you should update you 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 vesion给我一个错误Angular 5-Webpack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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