Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Consider providing a git repo that reproduces the issue and we can take a look for you. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found out that this has nothing to do with NuxtJS or Tailwindcss itself, but with a hydration mismatch. Previously there was a small refresh (in Nuxt 3), in Nuxt 4 this "refresh" also occurs with a hydration mismatch, but after this refresh the css is no longer loaded. By solving the hydration mismatch, the css problem is solved. |
Beta Was this translation helpful? Give feedback.
0 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.
-
What version of Tailwind CSS are you using?
import tailwindcss from '@tailwindcss/vite'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
compatibilityDate: '2024-11-01',
devtools: { enabled: process.env.NODE_ENV !== 'production' },
css: ['~/assets/css/main.css'],
future: {
compatibilityVersion: 4,
},
....
vite: {
server: {
allowedHosts: ['vanlandoptafel.nl', 'www.vanlandoptafel.nl', 'localhost']
},
plugins: [
tailwindcss()
],
....
Beta Was this translation helpful? Give feedback.
All reactions