Rohjans
Explore posts from serversTailwind styles not working after migrating to NuxtUI v3
@kapa.ai Running the upgrade tool now will only result in this error:
❯ npx @tailwindcss/upgrade
(node:226220) ExperimentalWarning: CommonJS module /home/raul/.nvm/versions/node/v23.1.0/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /home/raul/.nvm/versions/node/v23.1.0/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use
node --trace-warnings ...
to show where the warning was created)
≈ tailwindcss v4.1.4
│ Tailwind CSS v4.1.4 found. The migration tool can only be run on v3 projects.16 replies
Nuxt ENV not working in docker container
Apparently, by default, Nuxt only reads system envs that start with "NUXT_", example: "NUXT_DBHOST". So there are 2 solutions:
- Change the env names in the docker compose, and add the NUXT prefix to all of them.
- Configure nuxt to remove/change the prefix (https://github.com/unjs/nitro/issues/1836#issuecomment-1770116095).
This can be done by adding the following to nuxt config:
5 replies