Closed kattsushi closed 10 months ago
I see, so it works fine in app mode but fails in lib mode. π€ Any chance you can try to debug this?
I followed the steps and it's working fine for me ( library mode ). Can you share a reproduction repo pls?
@gioboa if it helps, this also happens in Qwik UI / kit-fluffy (check out the vite.config.ts)
I had to comment out the macro lines in the vite.config.ts because I didn't have time to debug it
These lines here I guess https://github.com/qwikifiers/qwik-ui/blob/3239860e895b1dfa9c09887a72f3e69858621c0b/packages/kit-fluffy/vite.config.ts#L12 Thanks @shairez for sharing. π
exactly @gioboa !
I followed the steps and it's working fine for me ( library mode ). Can you share a reproduction repo pls?
sure here is a link box with the reproduction in stackblitz if helps https://stackblitz.com/edit/qwik-starter-6gvajo?file=vite.config.ts
exactly @gioboa !
i can confirm that, commenting that macroPlugin now it is working but i don know what are the implications to do that fix, in another hand in the app mode does't have any issue with that plugin
Hey @kattsushi, I verified that now it's working fine with the latest version of Qwik. So I'm closing this issue for now, feel free to re-open it if it's still an issue for you. Thanks.
Which component is affected?
Qwik Runtime
Describe the bug
i am doing a new library of Qwik components
im expected to add any integration such pandacss to an qwik library
Reproduction
https://stackblitz.com/edit/qwik-starter-6gvajo?file=postcss.config.cjs
Steps to reproduce
npm create qwik library test-library-adding-pandacss
npm install
npm run qwik add pandacss
change postcss.config.js to postcss.cjs
npm run dev
Getting error regarding to vite-plugin-macro
`> my-qwik-library-name@0.0.1 dev
VITE v4.4.7 ready in 840 ms
β Local: http://localhost:5173/ β Network: use --host to expose β press h to show help
this is handle change the exstention of postcss.configo.js to .cjs but another error appears
ξΊ ο ξ± οΌ ~/t/test-library-adding-pandacss ξ° npm run dev ξ² β ξ³ took 4s ο ξΌ
System Info
Additional Information
No response