Son
Son9mo ago

Convex Monorepo Issue (react-dom native)

when ever i install "react-native-tab-view": "^3.5.2", my native apps break. i get the same error when i install other modules too. I don't see the connection between the packages i'm installing and the error. I haven’t touched any other part of the repo yet. any ideas?
No description
9 Replies
Son
SonOP9mo ago
GitHub
GitHub - AyoCodess/new-repo at stable-version
Contribute to AyoCodess/new-repo development by creating an account on GitHub.
No description
sshader
sshader9mo ago
I think our docs are missing a setup step which might be your issue -- you need to install react-dom in your react native project to use it with convex (The Convex library is using a utility function from react-dom https://discord.com/channels/1019350475847499849/1118905953656520724/1118967446657835148)
Son
SonOP9mo ago
I installed it directly into my repo, (native app) and got the same issue unfortunately
Son
SonOP9mo ago
i restarted my mac, deleted all node modules, re+installed everything. now i get this error
No description
No description
Son
SonOP9mo ago
No description
Son
SonOP9mo ago
got it working. had to install "@clerk/clerk-react": "^5.5.0", as well as react-dom same error, even after installing clerk-react in native project. update: adding these two packages to the root package.json seems to have done the trick "dependencies": { "@clerk/clerk-js": "^5.18.0", "react-dom": "18.2.0" },
bj
bj4w ago
Is this still necessary? if so can i help you update your docs? @sshader
bj
bj4w ago
also, this guy has some good ideas: https://github.com/get-convex/convex-backend/issues/74
GitHub
Convex React client requires "react-dom" to be installed even on re...
In the docs here, convex instructs to use the default Convex React client library for React Native projects. When trying to do so, this code here convex-backend/npm-packages/convex/src/react/client...
erquhart
erquhart4w ago
Commented on the issue, we can keep the conversation there

Did you find this page helpful?