-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Type error with apollo client package #11131
Comments
Hey @SaumilNagariya 👋 Could I get a little more info from you. When you say "working fine till yesterday", were you using a prerelease version of 3.8? If so, which one? Not much has changed between the |
What versions of Next.js and TypeScript are you using? I've tried to reproduce this with no luck so far. I've cloned the latest https://github.com/vercel/commerce project, pnpm installed @apollo/[email protected] and imported + called As you can see here, it passes linting and type checking but later fails to generate static pages because I don't have API keys for a Shopify store in my env variables: |
In the meantime, you can try the snapshot release from #11134 by doing This subtly changes the import syntax in the built - import { type QueryReference } from "../cache/QueryReference.js";
+ import type { QueryReference } from "../cache/QueryReference.js"; But I'd be very curious to look at a reproduction since AFAIK the syntax we're currently using has been supported since TypeScript 4.5. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
Hi team,
We are using node v18.16.1 and apollo-client 3.8.0 for Nexjs Commerce repo. It was working fine till yesterday, but now it is failing the build.
Yarn build
can you please help me asap?
Link to Reproduction
n/a
Reproduction Steps
No response
The text was updated successfully, but these errors were encountered: