primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.6k stars 1.23k forks source link

Primevue 4 Design Tokens: Bug when transpile Build #6217

Open Ed1ks opened 3 months ago

Ed1ks commented 3 months ago

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

  1. Go to nuxt.config.ts
  2. add code mentioned

(or open stackblitz link)

  1. open theme editor in Toolbar

  2. change color/theme

  3. -> not working

  4. remove code and start dev again

  5. working

Expected behavior

changing color

tixlag commented 1 month ago

Iam used primevue 4.0.7. The same problem

mingardia commented 1 month ago

Add '@primevue/themes' to the transpile and it will work ie. transpile: ['nuxt', 'primevue','@primevue/themes'],