How to upgrade Tailwindcss?

Discussão em 'Angular' iniciado por Nathan30, Janeiro 23, 2025.

  1. Nathan30

    Nathan30 Guest

    I'm currently using Tailwind v3 in my Angular project (https://github.com/edissyum/opencapture/tree/dev_nch).

    Today I try to upgrade to Tailwind v4, but without success.

    I didn't use postcss, I just have Tailwind in my package.json, my tailwind.config.js and the @tailwind base import in my main scss file

    If I upgrade the package to 4.0.0, I have the following error

    Error: It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin.
    The PostCSS plugin has moved to a separate package,
    so to continue using Tailwind CSS with PostCSS
    you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.


    I try to install @tailwind/postcss and create a PostCSS config file like this

    export default {
    plugins: {
    "@tailwindcss/postcss": {}
    }
    }


    Thanks in advance

    Continue reading...

Compartilhe esta Página