Replies: 6 comments 5 replies
-
hey, Panda can't know that the or you can use the |
Beta Was this translation helpful? Give feedback.
-
Another proposal for the excellent documentation @astahmer and @segunadebayo, As a typescript user, could you move all of the typescript related documentation into one own section. It would make it much more easier to get the related information from one place (it makes sense that those are in the related places, but it's very hard to remember, where to find definitions later). If one uses the search, one gets so many matches that it's a bit hard to get the right answers right away. Cheers, J |
Beta Was this translation helpful? Give feedback.
-
@astahmer Asking in this thread because the title almost exactly matches the issue I'm facing I'm using panda with Astro and React, and am mostly using the generated styled.x components. When I run I can't figure out the pattern to why this is happening. Sometimes everything works and all the styles get inserted, and other times, I am stuck saving files and restarting the dev server until it randomly starts working again. Any idea what might be going on? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey @astahmer Updated the example repo with a more advanced setup, where Cheers, Janne |
Beta Was this translation helpful? Give feedback.
-
Not sure if this helps (might be a different root cause) but I was seeing the same issue when adding a new app to my npm workspaces project and it turned out to be caused by a |
Beta Was this translation helpful? Give feedback.
-
In my case, when I used with Remix, after initialization from the panda-css guide, I did not see anything in styles, because the wrong include path was specified in the automatically generated configuration. After changing the actual issue, the problem was solved ![]() |
Beta Was this translation helpful? Give feedback.
-
Hello and thanks for a great library,
I'm trying to get Panda to work with
bun
,vite
andtypescript
. All configs and theme are working properly, the problem is that, if I make a common styled component or just another component and if I pass the styles as props down to component, it doesn't create the actual css styles only css classes, likebg_primary text_white
. Even thought I manually runprepare
.I'm guessing the problem is with vite?
It works, if I add there a component which have styles coming through
css({})
function. It somehow needs to initialise those. The only style props that work are the ones put in thecss({})
function. Same happens if I only want to usecva()
. It doesn't update the styles. I have tried to look the documentation carefully, but nothing seems to work for me.Look
App.tsx
and./src/components/container
https://github.com/jjjtoikka/panda-test
Cheers, Janne
Beta Was this translation helpful? Give feedback.
All reactions