primevue
primevue copied to clipboard
Primevue 4 Design Tokens: Bug when transpile Build
Describe the bug
Hello, if this code is in nuxt.config.ts, the updatePreset() method aint working anymore:
build: {
transpile: ['nuxt', 'primevue', 'formkit-primevue']
},
Reproducer
https://stackblitz.com/edit/nuxt-starter-tuvwb8
PrimeVue version
4.0.2
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
Edge
Steps to reproduce the behavior
- Go to nuxt.config.ts
- add code mentioned
(or open stackblitz link)
-
open theme editor in Toolbar
-
change color/theme
-
-> not working
-
remove code and start dev again
-
working
Expected behavior
changing color
Iam used primevue 4.0.7. The same problem
Add '@primevue/themes' to the transpile and it will work ie. transpile: ['nuxt', 'primevue','@primevue/themes'],