Skip to content

Reference notFoundMessage not working #3174

Closed as not planned
Closed as not planned
@peterbartels

Description

@peterbartels

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions