Closed koshuang closed 3 years ago
Error when upgrading tailwindcss
TypeError: Invalid PostCSS Plugin found at: plugins[0]
(@/home/kos/git/onramplab/next-starter/postcss.config.js)
at Array.forEach (<anonymous>)
Issue: https://github.com/tailwindlabs/tailwindcss/issues/2795
Solution: https://tailwindcss.com/docs/installation#post-css-7-compatibility-build
Once the rest of your tools have added support for PostCSS 8, you can move off of the compatibility build by re-installing Tailwind and its peer-dependencies using the latest tag:
npm uninstall tailwindcss @tailwindcss/postcss7-compat
npm install tailwindcss@latest postcss@latest autoprefixer@latest
Upgrde:
v10
v17
v2