primefaces / primevue

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

Primevue 4 Design Tokens: Bug when transpile Build #6217

Open Ed1ks opened 2 months ago

Ed1ks commented 2 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 5 days ago

Iam used primevue 4.0.7. The same problem