(一)需求
react的项目,在安装成功后,页面报错。找教程没有找到合适的。
PostCSS plugin postcss-flexbugs-fixes requires PostCSS 8.
(二)分析
需要升级PostCSS
的版本到8
(三)解决
# 卸载
npm uninstall tailwindcss postcss autoprefixer
# 重新安装
npm install tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^8 autoprefixer@^9
运行起来生效了。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。