importing styled doesn't exist #892
-
Description
After project set-up, I'm getting the error, Module '"@/styled-system/jsx"' has no exported member 'styled'.ts(2305) I'm not seeing it created in the styled-system folder. This is from docs page https://panda-css.com/docs/concepts/style-props Link to Reproductionno styled in codegen panda output Steps to reproducein the base project setup, run codegen panda. There's no styled exported JS FrameworkNo response Panda CSS Version0.5.0 BrowserGoogle Chrome Version 114.0.5735.199 Operating System
Additional InformationFollowing the docs here: https://panda-css.com/docs/concepts/style-props |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
you need to define the https://panda-css.com/docs/concepts/style-props#configure-jsx |
Beta Was this translation helpful? Give feedback.
-
This is done on panda.config.
|
Beta Was this translation helpful? Give feedback.
-
can you provide a minimal repro from this template ? https://github.com/astahmer/panda-vite-template |
Beta Was this translation helpful? Give feedback.
-
After adding |
Beta Was this translation helpful? Give feedback.
-
I created a repo: https://github.com/rubenmonterogonzalez/next-with-panda Now it fails this line: If I active this line in panda.config.ts : |
Beta Was this translation helpful? Give feedback.
After adding
jsxFramework: 'react'
in panda.config you should runpanda codegen
again