Typing issues for preset-panda #1922
-
DescriptionAs stated in Which panda presets will be included?,
Link to Reproductionhttps://stackblitz.com/edit/vitejs-vite-a48rp3?file=panda.config.ts Steps to reproduce
JS FrameworkReact (TS) Panda CSS Version0.23.0 BrowserNo response Operating System
Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
By the way, can I skip installing |
Beta Was this translation helpful? Give feedback.
-
preset-base is always included, preset-panda is not when you add a custom preset you have to add it back @pandacss/preset-base: ALWAYS included if NOT using eject: true
yes, for most people it's included by default if not using presets, otherwise you can import it from |
Beta Was this translation helpful? Give feedback.
-
I try but I can't, I have a TypeScript error, hence the issue is created.
I don't know how I overlooked it. Thanks! |
Beta Was this translation helpful? Give feedback.
-
in the issue you mentioned the preset-panda so I thought you had it confused with the preset-bad, my bad ! looking at your stackblitz, it seems there's a type issue but the runtime looks fine, you can solve it by either:
|
Beta Was this translation helpful? Give feedback.
-
I like the second solution more 😅. I think this issue is a minor one now since there are alternatives with string definitions. I don't know if this issue should be closed as a typing error still persists. But again, it's a minor one. Thanks for the quick response! |
Beta Was this translation helpful? Give feedback.
-
I don't see an easy way to solve this since the typings and overloads. You don't need to install I'll move this to a discussion for now. |
Beta Was this translation helpful? Give feedback.
I don't see an easy way to solve this since the typings and overloads.
You don't need to install
@pandacss/preset-panda
at all because Panda can resolve it internally.I'll move this to a discussion for now.