You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use CVA or SVA in my NX project, CSS is not generated. However, it works fine with props.
exportconstRoute=createFileRoute('/')({component: ()=>{constsquare2=cva({base: {w: '16',h: '16',bg: 'green.600',},});return(<Stackgap="4"m="16"><Boxw="16"h="16"bg="red.600"/>{/* 👇 CVA, SVA will not be pre-generated */}<BoxclassName={square2()}/><Boxcss={{w:"16",h:"16",bg:"blue.600"}}/></Stack>);},});
I don't recommend using an importMap that contains every entrypoints (css recipes patterns etc), and I dont' recommend having a lib/styled-system taking care of the CSS generated for the app either, but still, if you really want this you can make it work like this:
Description
When I use CVA or SVA in my NX project, CSS is not generated. However, it works fine with props.
Link to Reproduction
https://stackblitz.com/~/github.com/waraness99/panda-test
Steps to reproduce
My panda config with NX is not great yet...
npm i
.libs/styled-system/panda.config.ts
and temporary edit outdir to./src/lib/__generated__
.cd libs/styled-system && npx panda
../libs/styled-system/src/lib/__generated__
).npx nx serve desktop-front
.JS Framework
React (TS)
Panda CSS Version
0.33.0
Browser
Chromium Engine Version 121.0.6167.184
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: