Skip to content

Fix incorrect React 19 Stable Peer Dependencies - #4753

Closed
davecarlson wants to merge 2 commits into
clerk:mainfrom
davecarlson:react-19-peer-deps
Closed

davecarlson wants to merge 2 commits into
clerk:mainfrom
davecarlson:react-19-peer-deps

Conversation

@davecarlson

@davecarlson davecarlson commented Dec 11, 2024 •

Copy link
Copy Markdown
Contributor

Description

Now that react 19 is stable, @clerk has updated it's peer deps to pull this is. However, they do not actually work, do to an extra -0 on the version number, which is no longer needed:

npm warn Found: react@19.0.0
npm warn node_modules/react
npm warn   peer react@"^18 || ^19.0.0-0" from @clerk/nextjs@6.9.0
npm warn   node_modules/@clerk/nextjs
npm warn     @clerk/nextjs@"^6.9.0" from @app@1.0.0
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^19.0.0" from react-dom@19.0.0
npm warn node_modules/react-dom
npm warn   peer react-dom@"^18 || ^19.0.0-0" from @clerk/nextjs@6.9.0
npm warn   node_modules/@clerk/nextjs

This PR updated the package.json files to correctly look for ^19.0.0

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot

changeset-bot Bot commented Dec 11, 2024 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0d5d156

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercel Bot commented Dec 11, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ❌ Failed (Inspect) Dec 11, 2024 10:41am

@jacekradko

Copy link
Copy Markdown
Contributor

@davecarlson Thanks for bringing this up to our attention and opening a PR. To make it easier for it to get released as soon as possible, I created a PR that builds on yours here: #4758

@LekoArts

Copy link
Copy Markdown
Contributor

Hey, thanks again for the PR. We've merged #4758 in the meantime and it'll be released soon!

This branch had an error being deployed

1 failed deployment
Preview — 0d5d156e Deployed Dec 11, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants