-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: getProcessedPlugins is not a function #2810
Comments
I too am getting this, I'm using the PostCSS 7 compatibility build with Vue 2 "postcss": "^7.0.35", For anyone coming from Google, you need to make sure you have upgraded to Node.js 12.13 or higher for Tailwind v2 |
@alexcroox I managed to fix it on my end. What I did was I removed the existing |
I have the same issue and was not able to resolve it yet.
|
@GregSitholeEntrostat what was the diff on your tailwind.config.js? Perhaps there is something missing in the upgrade guide? Could you re-open as it seems others are hitting this issue and we've not got to the cause yet. |
@alexcroox There's quite a bit of change. Here's a link to their latest version https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js @SimonPrague I'm not too sure, I'm not familiar with those plugins and currently not using any! Have you tried to see what happens when you remove the plugins? |
It breaks the same even with removing those plugins :( |
Ok I removed the UI plugin as it seems no longer required for TailwindUI. But I get this error instead:
|
I guess that could be related to #861 |
I managed solving the problem like so: https://tailwindcss.com/docs/installation#post-css-7-compatibility-build |
That did not help. Is it possible due to the change in colors? I was using both gray and cool-gray and it seems there were some changes... |
Ok I've added alias for cool-gray and I'm back to the |
OK I have no solution so far. It might be because of: vue cli and postcss loader |
Anyone got Tailwind 2 working with Typescript & Vue Cli & Vue 3, heh? |
I also had this issue. did you follow the upgrade guide? Specifically, did you upgrade postcss? |
Yep, I followed these instructions. I tried both latest and comp versions. Still the same problem. |
Hey guys! I have the same problem. I've been trying to migrate to tailwind 2 for hours now. |
Whatever I do, I get a |
I tried that but still get errors
|
I was able to get Tailwind 2 and Vue 2 w/ Cli to work with the compatibility build - currently I believe Vue Cli uses an old version of postcss-loader and thus does not support postcss 8. Hopefully they'll update it in the future (added a request here). Steps I took:
|
Hmm.. I had the same error, but fixed it by just fooling around. Try to copy my settings? This is a pretty big deal too, read the thingy: https://tailwindcss.com/docs/upgrading-to-v1#1-update-tailwind
|
Can someone publish a GitHub repo that reproduces the issue? I suspect it will be fixed by switching to the new compatibility build:
The issue we have been seeing is that More details here: https://tailwindcss.com/docs/installation#post-css-7-compatibility-build |
@adamwathan I did run the compatibility build you linked to and still get errors. |
I don't know if this is related... I'm running NextJS I had similar issues for hours ( It sounds like something is cached somewhere. |
@LawJolla when you say you started from a clean config, are you referring to just the |
I setup a fresh new project and installed my css/js deps along with tailwindcss 2.0.1 and it built fine. After banging my head on it for a while I removed |
I nuked my node_modules folder I also ran |
It appears the issue is that the tailwindcss package installed under my node_modules ( Perhaps someone here understands why tailwindcss is including that older postcss dep into itself and how to permanently fix this? It looks to me like tailwindcss has |
Check your nodejs version (node -v) , I had v10.19.0, then made global update to v14.15.1, using vue-cli with the following dependencies After updating node and running npm run serve I was able to build the tailwind under vue-cli postcss.config.js tailwind.config.js |
I know this issue is closed, however I had the same I found the cause to be my local is running node v12.18.1 (npm v6.14.5) and the failing Github action was using node v10.23.0 (npm v6.14.8) updating my Github Actions config to use the same version of node as my local stopped the build from failing. I am unsure if this is documented anywhere @adamwathan but I have seen it suggested by a few other members of the community and can confirm it was the cause of this issue in my case. |
Could be Node version too. If you use nvm like me, check if your Node is => 12 |
It works for me with node 11 |
In case someone bumps into this when deploying to Netlify (just when you thought everything was perfect locally...) you can add a .node-version file to your site root and just specify 14 as the version. That makes it build and deploy ok on Netlify. |
After updating the nodejs version to v14.15.4, my issue is gone |
in my case, updating node version to v14.7.0 from v10.22.0 fixed the error in Next.js app. |
This solutions works on my Next.js project! Thanks |
Updating the node to the latest version(v15.7.0) solved the problem for me! |
Updating node version to solve issues on build. Ref: tailwindlabs/tailwindcss#2810
Hi i fixed the error "TypeError: getProcessedPlugins is not a function" by updating my Nodejs to newer version of 12.22.1 |
you need to update nvm. do |
I've had the same issue, but it had nothing to do with the Node version. The issue was that I've disabled the default configuration without providing default values for enabled plugins:
The error message actually points to this issue, as there are two errors:
So the error is indeed correct, but I guess the error message could be improved. |
A problem I had was that I had properties under |
This worked for me as well! |
Me too! I'm glad it was an easy fix for such a cryptic error 😄 |
it worked for me too ! Thank you |
damn king, you rock! It worked for me either. |
Actually that - presets: [] Is included when run command |
Thanks! This worked for me with Next.js. |
Similar to what @patoncrispy said, I had my config with the following value for variants:
This was causing the root of my issues for not using |
Describe the problem:
Upgraded from TailwindCSS 1.9.6 to 2.0.1 for my angular project following the instructions on their website. I had previously used the following guide: https://notiz.dev/blog/angular-10-with-tailwindcss#setup to Install the previous version and that worked before.
Please see error below:
The text was updated successfully, but these errors were encountered: