1、启动项目报错
Syntax Error: Error: PostCSS plugin tailwindcss requires PostCSS 8. Migration guide for end-users: https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users
2、安装包版本问题
卸载现有版本
npm uninstall tailwindcss postcss autoprefixer
安装正确版本
npm install tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7autoprefixer@^9
安装后,可以启动
参考链接
https://stackoverflow.com/questions/64925926/error-postcss-plugin-tailwindcss-requires-postcss-8
网友评论