EnjinE
Convex Community16mo ago
8 replies
Enjin

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.


Is there an easy way to resolve this?
Was this page helpful?