Day98/100PostCSS plugin postcss-flexbugs-fixes requires PostCSS8

(一)需求

react的项目,在安装成功后,页面报错。找教程没有找到合适的。

PostCSS plugin postcss-flexbugs-fixes requires PostCSS 8.

(二)分析

需要升级PostCSS的版本到8

(三)解决

# 卸载
npm uninstall tailwindcss postcss autoprefixer
# 重新安装
npm install [email protected]:@tailwindcss/postcss7-compat [email protected]^8 [email protected]^9

运行起来生效了。

参考链接

https://www.tailwindcss.cn/do...

你可能感兴趣的:(Day98/100PostCSS plugin postcss-flexbugs-fixes requires PostCSS8)