-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CSS not Server Side Rendered with PrimeVue 4 / Nuxt 3 #5945
Comments
I also experienced this issue. export default defineNuxtConfig({
modules: ['@primevue/nuxt-module'],
primevue: {
components: {
include: [], // set to empty array to prevent registering all components
},
},
}) Here's what i've tried so far:
All exhibits same behavior, that is CSS not server-rendered |
@mertsincan This was working in 4.0.0-rc.3, and is now broken again in 4.0.2. |
Any update on this issue ? |
This issue still persists with version 4.2.2. |
Currently it works with this configuration.
|
Describe the bug
I'm on PrimeVue
4.0.0-rc.2
with Nuxt3.12.12
.Theme styles are not rendered Server Side.
Whenever I do a full page reload, the layout shifts and it takes a second before the PrimeVue component chunks are loaded (including the styles).
This was working in PrimeVue 3 without issues.
nuxt.config.js
Reproducer
https://stackblitz.com/edit/nuxt-starter-xjup5v?file=app.vue
Compare the PrimeVue component to a regular button with a custom CSS class. (see
style.css
)The button will be red from the very beginning, and not shift later.
PrimeVue version
4.0.0-rc.2
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Setup a new Nuxt Project with PrimeVue 4.
Expected behavior
CSS should be processed on the server and delivered with the initial response. This worked in PrimeVue 3.
The text was updated successfully, but these errors were encountered: