You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
I have a Next.js app, with Tailwindcss, Postcss and postcss-each plugin. While trying to upgrade the packages because of some vulnerabilities I found out that the configuration I had before in my postcss.config.js start failing because the plugins order changed in Postcss 8.
and I found this solution so I need to use the beforeEach configuration available in `postcss-each´ plugin in order to call Tailwindcss plugin before each iteration.
Describe the Bug
I have a Next.js app, with Tailwindcss, Postcss and postcss-each plugin. While trying to upgrade the packages because of some vulnerabilities I found out that the configuration I had before in my
postcss.config.js
start failing because the plugins order changed in Postcss 8.Old configuration:
and I found this solution so I need to use the beforeEach configuration available in `postcss-each´ plugin in order to call Tailwindcss plugin before each iteration.
Next.js documentation explicitly says:
But when I try to import Tailwindcss in the postcss.config.js as a string without require() like this:
and trying to run the app then I got
Error: tailwindcss is not a PostCSS plugin
Expected Behavior
Tailwindcss plugin is found when called inside beforeEach without
require()
as defined in the Next.js documentation.To Reproduce
Github Repository
In the Getting Started section of the readme file you can find the steps to reproduce the issue.
The text was updated successfully, but these errors were encountered: