Jotai breaks on Expo project but not on web project in mono-repo #2763
-
Bug DescriptionI have a simple yarn berry monorepo (yarn workspaces) with following structure:
so the apps both have a dependency on the features package and use the Login component.
and is being used in the native app like this:
in the web app it's being used like this:
In the web the component renders correctly, however in the mobile app I get the following exception:
with callStack:
I am using Expo with typedRoutes and have placed a Reproduction Link |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
when I replace the contents of the
it works just fine, is this maybe because there are no direct references to the atoms anywhere in the app's code, but only in the features package's code? |
Beta Was this translation helpful? Give feedback.
-
This had nothing to do with Jotai, there was a stray react devdependency that caused 2 versions to be loaded. |
Beta Was this translation helpful? Give feedback.
This had nothing to do with Jotai, there was a stray react devdependency that caused 2 versions to be loaded.