Failed upgrading from v3.3.3 to latest #16919
Replies: 3 comments 1 reply
-
Small update on this: I locally set my NodeJS version to v20.0.0 and tried running the upgrade tool the TailwindCSS upgrade documentation suggests. Now I get errors like below. I did add the
|
Beta Was this translation helpful? Give feedback.
-
After some tinkering around I think I got v4.0.9 working. Getting some For those of you running into the same issues as me; what I did was:
After a local build, I see the tailwind classes again, on inspecting elements in the chrome devtools. So I think the majority of things is done for now. |
Beta Was this translation helpful? Give feedback.
-
There is no need for both If you want to keep other PostCSS configurations (if any), you can implement the appropriate plugin in PostCSS. After that, Vite will automatically use your PostCSS plugins. Alternatively, you can use the TailwindCSS plugin that is directly built into Vite, which allows you to skip the entire PostCSS configuration; if you haven't used it for anything else. The RelatedTo install TailwindCSS v4, please refer to the updated installation and upgrade guides.
Some related question for v4 manually upgrade:
Sorry for mostly throwing around links, but I'm not sure exactly what was left out during the migration, and I don't want to repeat myself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Due to us running NodeJS v18, the upgrade tool won't work. At least, the docs mention it uses NodeJS v20, so trying to do the upgrade manually. Main project specs are as follows:
Upgraded tailwind by running
npm install tailwindcss@latest
. Also rannpm install @tailwindcss/vite
andnpm install @tailwindcss/postcss
.After these I edited my postcss.config.js and vite.config.js files; the latter now has the
import tailwindcss from "@tailwindcss/vite";
line, but this returns "Cannot find module '@tailwindcss/vite' or its corresponding type declarations.ts(2307)".But.. I just installed it?
Am I missing something basic here?
Beta Was this translation helpful? Give feedback.
All reactions