CSS not Server Side Rendered with PrimeVue 4 / Nuxt 3 #5945
Labels
Package: Module
name: @primevue/nuxt-module
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
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: