roninoss / rn-primitives

Style-agnostic, accessible React Native components for iOS, Android, and Web
https://rnprimitives.com
MIT License
428 stars 13 forks source link

Warning: TypeError: 0, _$$_REQUIRE(_dependencyMap[6](...)ve-css-interop/jsx-runtime").jsx is not a function (it is undefined) #47

Open shikhinee opened 4 days ago

shikhinee commented 4 days ago

I've only initialized @rn-primitives/alert-dialog": "^1.1.0 in react-native cli project on v0.76.1. I no longer can run my app due to these errors.
(NOBRIDGE) ERROR Warning: TypeError: 0, _$$_REQUIRE(dependencyMap6ve-css-interop/jsx-runtime").jsx is not a function (it is undefined).
(NOBRIDGE) ERROR Uncaught error: [TypeError: 0,
$$_REQUIRE(_dependencyMap6ve-css-interop/jsx-runtime").jsx is not a function (it is undefined)] {"componentStack": " I'm using NativeWind for styling. My project was running fine until I added alert-dialog and I can no longer build it. I've tried downgrading, changing my nativewind version, reconfiguring my babel.config.js, cleaning and rebuilding. Also tried removing my themeContext etc. It's still giving me the same error. I think it'll give the same error for some other components too.

mrzachnugent commented 3 days ago

Hey @shikhinee, can you provide a minimal reproduction repo?