adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
13.11k stars 1.14k forks source link

Request to Include RC Versions in React Dependency for Next.js v15 Compatibility #7357

Closed zaru closed 1 week ago

zaru commented 2 weeks ago

Provide your feedback here.

I’m using React Aria Components with Next.js. Now that Next.js v15 has been released, I want to upgrade. However, React Aria Components depends on React ^19.0.0, which prevents me from installing the RC version of React required by Next.js v15.

Could you please update the React dependency to include RC versions so it can be used with Next.js v15?

https://github.com/adobe/react-spectrum/blob/f08b17dcefbf404312c467842e72f45a7033c9dd/packages/react-aria-components/package.json#L74-L77

🔦 Context

No response

💻 Code Sample

npm i react-aria-components

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: example@0.1.0
npm error Found: react@19.0.0-rc-02c0e824-20241028
npm error node_modules/react
npm error   react@"19.0.0-rc-02c0e824-20241028" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" from react-aria-components@1.4.1
npm error node_modules/react-aria-components
npm error   react-aria-components@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Version

No response

What browsers are you seeing the problem on?

No response

If other, please specify

No response

What operating system are you using?

No response