Replies: 1 comment 4 replies
-
Hi @Newbie012, You shouldn’t have to run panda codegen in watch mode. The postcss plugin will detect changes and re-emit the files as needed. NB: The version we used on the livestream had some regressions that’s why it didn’t work. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When I edited a recipe located in lib/recipes/button.recipe.ts, I expected the change to be reflected in the browser. However, it didn't.
I tried reproducing it in Stackblitz, but it seems to work there, so my guess it has something to do with WSL2.
❌ Didn't work:
pnpm dev
andpnpm panda codegen --watch
running at the same time.include
properly (Got "config changed, rebuilding...").styled-system
folder and runningpnpm panda codegen
.node_modules
folder.✅ Worked, but meh...
panda.config.ts
after editing the recipe.Link to Reproduction
https://stackblitz.com/edit/github-lhhzk8-urjw7p?file=lib%2Frecipes%2Fbutton.recipe.ts,panda.config.ts
Steps to reproduce
While it works on Stackblitz, I'll reflect the steps I'm doing which it doesn't work
pnpm dev
andpnpm panda codegen --watch
are runningbutton.recipe.ts
JS Framework
React (TS)
Panda CSS Version
0.18.3
Browser
Google Chrom 119
Operating System
Additional Information
Since I can't reproduce it on Stackblitz, I know that there's a big chance you won't be able to fix it. Thus, I'll be happy to cooperate on Discord or on any platform you see fit. I assume this issue will happen a lot. In fact, I think it happened on your live stream as well.
I'm using Vite 5 and I'm running on WSL 2.
Screenshare.-.2023-11-19.1_37_12.AM.mp4
Beta Was this translation helpful? Give feedback.
All reactions