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

Pin @apollo/client to 3.4.17 - fixes Unhandled Runtime Error when loading Admin UI for fresh installs #6986

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

JedWatson
Copy link
Member

@JedWatson JedWatson commented Nov 23, 2021

There's an issue with @apollo.cilent >= 3.5.0 and apollo-upload-client which breaks Keystone's Admin UI for fresh installs.

Pinning the version of @apollo-client we're using until this has been resolved, ref jaydenseric/apollo-upload-client#273 and apollographql/apollo-client#9103

A note for visibility / searchability: this error surfaces as

Unhandled Runtime Error
Error: An error occurred when loading Admin Metadata

If you're using yarn@1.x, you can work around this in the meantime using resolutions by adding the following to your package.json:

  "resolutions": {
    "**/@apollo/client": "3.4.17"
  },

@vercel
Copy link

vercel bot commented Nov 23, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/4HvSP1RFzjvfQ5GyJaLaABUdJiVw
✅ Preview: https://keystone-next-docs-git-pin-apollo-client-keystonejs.vercel.app

@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2021

🦋 Changeset detected

Latest commit: 462e50b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@keystone-next/keystone Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 23, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@vercel vercel bot temporarily deployed to Preview November 23, 2021 08:21 Inactive
@vercel vercel bot temporarily deployed to Preview November 23, 2021 08:24 Inactive
@JedWatson JedWatson changed the title Pin @apollo/client to 3.4.17 Pin @apollo/client to 3.4.17 - fixes Unhandled Runtime Error when loading Admin UI for fresh installs Nov 23, 2021
@dcousens dcousens merged commit 622e576 into main Nov 23, 2021
@dcousens dcousens deleted the pin-apollo-client branch November 23, 2021 22:50
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

Successfully merging this pull request may close these issues.

3 participants