primevue icon indicating copy to clipboard operation
primevue copied to clipboard

Primevue 4 Design Tokens: Bug when transpile Build

Open Ed1ks opened this issue 1 year ago • 2 comments

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

Ed1ks avatar Aug 12 '24 11:08 Ed1ks

Iam used primevue 4.0.7. The same problem

tixlag avatar Oct 07 '24 22:10 tixlag

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

mingardia avatar Oct 15 '24 00:10 mingardia