-
Notifications
You must be signed in to change notification settings - Fork 180
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
Upgrade tailwind 2.0.1 #202
Comments
Note - it requires at least Node.js 12.13.0 |
@web2033 i know, i tried this https://tailwindcss.nuxtjs.org/setup/#upgrading-tailwind but the version still in |
Same here, updated Node to latest version, and I can't upgrade tailwind to 2.0.1, any news? Doc says: just use npm update to update to latest version of tailwind... :( |
Could you try directly to do |
@Atinux i tried but i got this error |
Hi, I got this error
I'm using npm and this also happens when I tried to fresh install with npm init nuxt-app. How to fix this? |
@ThomOrlo worked out doing this |
Looks like tailwindui is no longer needed acording to ui doc, so I uninstalled it and now looks it's working, thanks anyway. More info: https://tailwindui.com/changes-for-v2 |
@malalecherocks in the colors do you see the |
I was just seeing that haha, I need to check if they have limited the colors and you have to add the palettes? something like that? I'm checking it right now |
In a fresh Nuxt.js project with |
@malalecherocks if you figured out let me know pls |
@apithy-isidro-martinez in your tailwind.config.js you need to add the colors you want to use in your project... // tailwind.config.js all of this I found in the official doc, |
@moritzruth Tried it, got it working. But it seems to take longer to compile and it is using lots of RAM. Have you noticed it or its just me? Edit: Figure out it was because new Tailwind 2 was heavier with new defaults, so it was increasing the build time. To optimize it during development, you can disable some Tailwind features you don't plan to use in your tailwind.config.js file. |
In the meantime, it seems like using the
Done, you can use all the features in Tailwind v2 |
@Atinux Am I right, that if you use custom TW config, than this module doesn't help much? |
I got my existing project by installing both tailwindcss and postcss as dev dependencies, Allthough I did notice slower build times. Just do:
|
Tailwind v2 is using PostCss 8, Nuxt is using PostCss 7. I think we have to use the compat build https://tailwindcss.com/docs/installation#post-css-7-compatibility-build |
I added a note how to upgrade to TailwindCSS 2 in the docs: https://tailwindcss.nuxtjs.org/setup#tailwind-2 Also, I have to wait for CodeSandBox to upgrade to Node 12 for the examples since it is still using Node 10. |
Would be nice if you read the docs before writing such comments: https://tailwindcss.nuxtjs.org/tailwind-config This module adds:
|
@Atinux Is Postcss 8 support in the works for Nuxt 2.x or will it release with Nuxt 3? |
@victorgarciaesgi it is planned to add it for Nuxt 2.15 and is already supported in Nuxt 3 |
Thank you for the updated Doc, really useful in dev mode. |
@Atinux please be aware that installing the tailwind compatibility build creates a hiccup with npm ( Situation:
NPM resolves a tree and ends up with the following (
Based on the tailwindcss Sidenote: JetBrains IDEs since 2020.3 need these binaries to provide autocomplete. That's how I figured it out. Yarn does it "better". At least those two binaries are in fact there. Running the Yarn seems to resolve the same tree (concerning the relationship of these 3 packages):
I don't think we can fix this issue here, as long as |
Thank you for the investigation @jankal I updated the documentation: https://tailwindcss.nuxtjs.org/setup#tailwind-2 |
How did you solve that? It seems to take more than 1 minute to build and consumes a lot of RAM |
@apithy-isidro-martinez So, in my tailwind.config.js file I defined only the features or in this case colors I intended to use and not extend it:
You might want to check https://tailwindcss.com/docs/configuration and https://tailwindcss.com/docs/optimizing-for-production#limiting-your-color-palette for better understanding. |
Hello, when will this update. Please provide an exact date. |
Using Tailwind 2.x is already possible (see #202 (comment)) |
This is not possible for me, I deploy with |
I believe v4 closes this out @Atinux |
when we can use tailwind 3 in nuxt/tailwind? @Atinux |
They were caused by wrong PostCSS and Tailwind versions More infos here: nuxt-modules/tailwindcss#202
Please upgrade to version 2.0.1 which has just been released
The text was updated successfully, but these errors were encountered: