Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in recipes are not reflected in the UI #797

Closed
cschroeter opened this issue Jun 22, 2023 · 2 comments
Closed

Changes in recipes are not reflected in the UI #797

cschroeter opened this issue Jun 22, 2023 · 2 comments

Comments

@cschroeter
Copy link
Member

cschroeter commented Jun 22, 2023

Description

When I change a recipe, I expect the change to reflect in the UI but the styles are not updated.

Link to Reproduction

https://github.com/cschroeter/panda-recipe-bug

Steps to reproduce

Open src/theme/recipes/badge.ts
Change for example the background color to blue.50

Expect the background of the badge to be blue not red.

JS Framework

React, Next

Panda CSS Version

0.4.0

Additional Information

Most likely a caching issue with PostCSS.

A workaround is to rm -rf .next and restart the next server. But this is pretty weak developer experience and we should find a better solution.

@segunadebayo
Copy link
Member

This is a known Next.js app dir issue.

There are a couple of references to the fact that the PostCSS strategy in the app dir isn't working as well as the pages dir.

vercel/next.js#39410
vercel/next.js#48748
vercel/next.js#47533

I'm confident it'll be fixed pretty soon.

@RDeluxe
Copy link

RDeluxe commented Jul 1, 2023

Hello, was wondering if my issue was linked. However I'm using Next13 with Pages, not AppDir

If I change the panda.config.ts file and modify tokens there, the hot reloading is working as intended. However if I store my tokens in another file, I need to restart the development server to see the changes.

You can find a repro here on stackblizt
Simply run pnpm run dev and modify the color in tokens.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants