Enjin
Enjin
CCConvex Community
Created by Enjin on 10/9/2024 in #support-community
React Native Quickstart Error
I'm following the docs to set up react-native with convex but running into this error:
✘ [ERROR] Could not resolve "convex/server"

convex/_generated/server.js:21:7:
21 │ } from "convex/server";
╵ ~~~~~~~~~~~~~~~

The Yarn Plug'n'Play manifest forbids importing "convex" here because it's not listed as a
dependency of this package:

../../../.pnp.cjs:16526:31:
16526 │ "packageDependencies": [\
╵ ~~

You can mark the path "convex/server" as external to exclude it from the bundle, which will remove
this error and leave the unresolved path in the bundle.
✘ [ERROR] Could not resolve "convex/server"

convex/_generated/server.js:21:7:
21 │ } from "convex/server";
╵ ~~~~~~~~~~~~~~~

The Yarn Plug'n'Play manifest forbids importing "convex" here because it's not listed as a
dependency of this package:

../../../.pnp.cjs:16526:31:
16526 │ "packageDependencies": [\
╵ ~~

You can mark the path "convex/server" as external to exclude it from the bundle, which will remove
this error and leave the unresolved path in the bundle.
Is there an easy way to resolve this?
9 replies