You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reproduction is a blank create repo created with yarn create next-app - all differences to a new repo are in this commit
npm install
npm run build
grep -rl watchQuery .next/static/chunks -> .next/static/chunks/959-17277ce4ae2a5d3b.js (watchQuery is an Apollo Client api, so it's easily identifiable by that even when class names are mangled)
Link to the code that reproduces this issue
https://github.com/phryneas/apollo-client-nextjs-reproduction-341
To Reproduce
The reproduction is a blank create repo created with
yarn create next-app
- all differences to a new repo are in this commitnpm install
npm run build
grep -rl watchQuery .next/static/chunks
->.next/static/chunks/959-17277ce4ae2a5d3b.js
(watchQuery
is an Apollo Client api, so it's easily identifiable by that even when class names are mangled)npm run start
959-17277ce4ae2a5d3b.js
is indeed sent to the browserCurrent vs. Expected behavior
Apollo Client should not end up in the Client Chunks when only referenced from Server Components.
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 22.6.0 npm: 10.8.2 Yarn: 1.22.22 pnpm: N/A Relevant Packages: next: 14.2.5 // Latest available version is detected (14.2.5). eslint-config-next: N/A react: 18.3.1 react-dom: 18.3.1 typescript: N/A Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
SWC
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local)
Additional context
This was brought to our attention in apollographql/apollo-client-nextjs#341
The text was updated successfully, but these errors were encountered: