Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for apollo 3.4 #63

Open
franck-nadeau opened this issue Apr 29, 2022 · 0 comments
Open

Support for apollo 3.4 #63

franck-nadeau opened this issue Apr 29, 2022 · 0 comments

Comments

@franck-nadeau
Copy link

I would like to use this with apollo 3.4.x, but I am getting the following error:

Metro has encountered an error: While trying to resolve module `@apollo/client/utilities` from file `/Users/MY/APP/node_modules/apollo-link-queue/build/dist/QueueLink.js`, the package `/Users/MY/APP/node_modules/apollo-link-queue/node_modules/@apollo/client/utilities/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/MY/APP/node_modules/apollo-link-queue/node_modules/@apollo/client/utilities/utilities.cjs`. Indeed, none of these files exist:

  * /Users/MY/APP/node_modules/apollo-link-queue/node_modules/@apollo/client/utilities/utilities.cjs(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
  * /Users/MY/APP/node_modules/apollo-link-queue/node_modules/@apollo/client/utilities/utilities.cjs/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx): /Users/MY/APP/node_modules/metro/src/node-haste/DependencyGraph.js (436:17)

  434 |
  435 |         if (error instanceof InvalidPackageError) {
> 436 |           throw new PackageResolutionError({
      |                 ^
  437 |             packageError: error,
  438 |             originModulePath: from,
  439 |             targetModuleName: to

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0

Is there work to get this to work with the latest version of Apollo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant