After updating Tailwind CSS to version 4 in Angular using npx @tailwindcss/upgrade@next --force, I encountered errors. #17978
Unanswered
manise1988
asked this question in
Help
Replies: 1 comment 6 replies
-
You probably need to use the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
these are the errors:
Cannot apply unknown utility class: -top-6,
node_modules.pnpm@angular+build@19.2.8_@angu_25a75d4b0001b30a5056367040380c53\node_modules@angular\build\src\tools\esbuild\load-result-cache.js
This is the update process:
npx @tailwindcss/upgrade@latest --force
npm warn Unknown project config "always-auth". This will stop working in the next major version of npm.
npm warn Unknown project config "always-auth" . This will stop working in the next major version of npm.
npm warn Unknown project config "shamefully-hoist". This will stop working in the next major version of npm.
Need to install the following packages:
@tailwindcss/upgrade@4.1.6
Ok to proceed? (y) y
≈ tailwindcss v4.1.6
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Linked .\tailwind.config.js to .\src\tailwind.css
│ Migrating JavaScript configuration files…
│ ↳ The configuration file at .\tailwind.config.js could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration
│ file.
│ Migrating stylesheets…
│ ↳ Migrated stylesheet: .\src\tailwind.css
│ Updating dependencies…
│ ↳ Updated package: tailwindcss
│ ↳ Updated package: prettier-plugin-tailwindcss
│ Migrating templates…
│ ↳ Migrated templates for configuration file: .\tailwind.config.js
│ ↳ Installed package: @tailwindcss/postcss
Beta Was this translation helpful? Give feedback.
All reactions