apollographql / apollographql/apollo-client-integrations

Unable to import in Next 15 due to registerApolloClient

Open
#383 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
556
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Hi,

It looks like `@apollo/experimental-nextjs-app-support` is throwing an error where it can't find `registerApolloClient`.

Not sure if it's because of it importing from `index.ssr.js` vs. another file, or what I'm doing wrong.

Would appreciate some help!

Thanks!

Code:

![image](https://github.com/user-attachments/assets/e75ef099-d76e-4688-a219-290363681ecc)

Server Error:

![image](https://github.com/user-attachments/assets/5feb537d-a134-4131-90ec-9608a65d30da)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Next 15 import failure and inspect how @apollo/experimental-nextjs-app-support resolves registerApolloClient, including the referenced index.ssr.js path. Done means the package imports successfully in the reported Next 15 setup and registerApolloClient is available without the server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, next.js, typescript
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.