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

Reference notFoundMessage not working #3174

Open
3 tasks done
peterbartels opened this issue Mar 11, 2025 · 0 comments
Open
3 tasks done

Reference notFoundMessage not working #3174

peterbartels opened this issue Mar 11, 2025 · 0 comments

Comments

@peterbartels
Copy link

Description

When I input a token reference that doesn't exist e.g. {spacing.foo} I would expect see a warning in the console, this is implemented here:

const notFoundMessage = (key: string, value: string) => `Reference not found: \`${key}\` in "${value}"`

It should show a message like warn [token] Reference not found: spacing.foo in "{spacing.foo}"

The warning is quite handy to trace accidentally wrong token usage.

Prior to v0.39.2 this was working. I reported this here: #2626

Link to Reproduction

https://play.panda-css.com/lhbG74qk60

Steps to reproduce

  1. Go to https://play.panda-css.com/lhbG74qk60
  2. Run the code
  3. Check console
  4. No warning

JS Framework

React

Panda CSS Version

0.39.2

Browser

n.a.

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

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

1 participant