Comments (7)
This seems to work for me. Can you try making a reproduction?
from macaron.
@Mokshit06 Seems like it still has something to do with forwardRef
. Here's a repro repo:
https://stackblitz.com/edit/vitejs-vite-tfdmq5?file=src/App.tsx
from macaron.
Fixed that in v1.2.1 #35. Can you try updating the version?
from macaron.
@Mokshit06 I'm using the latest. In the repro you can also see I'm using the latest packages (just created it).
from macaron.
from macaron.
You haven't specified value
prop in the type of SelectItem
:
const SelectItem = React.forwardRef(
({ children, ...props }: { children: React.ReactNode }, forwardedRef) => (
<StyledItem {...props} ref={forwardedRef}>
<RadixSelect.ItemText>{children}</RadixSelect.ItemText>
<StyledItemIndicator>✓</StyledItemIndicator>
</StyledItem>
)
);
Adding that fixes the issue
from macaron.
Closing this as I believe this is fixed. Feel free to open in case you face it again!
from macaron.
Related Issues (20)
- Svelte/general vite support? HOT 4
- Sprinkles-like API HOT 4
- Esbuild example with .html HOT 1
- Macro system does not support calling a function which calls `styled` HOT 6
- [plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension. HOT 4
- Question: is it possible to use child selectors?
- styled first parameter needs extended typing HOT 2
- Dynamic styling example in docs doesn't work HOT 4
- Ability to extend babel config in Vite? HOT 2
- Prop "as" of styled components can be a component HOT 4
- Console warning when sourcemaps are enabled HOT 2
- Integration of Kobalte or Ark with Macaron: Is it Possible to Combine Them? HOT 2
- Vite build watch doesn't work with Macaron HOT 7
- Is it possible to support the responsive variants approach from Stitches? HOT 1
- styled components don't overwrite their parent when they come from another file
- qwik js support HOT 3
- Dynamic styling example in docs (still) doesn't work HOT 2
- [URGENT] Vite 5.0.10 upgrade not working with Macaron HOT 4
- `createVar` not working as expected? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macaron.