-
Notifications
You must be signed in to change notification settings - Fork 325
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
Release new version compatible with React 17 #429
Comments
I'll gladly create a MR if you're willing to merge it and release a new version :) |
@alexandernst Yes please, put up a PR and i'll get a version released! |
@blainekasten Done! #432 I also changed |
Resolves reach#429
@sfcgeorge Wrote a wonderful synopsis about this issue in PR (#432) which I feel should be captured here. |
I'm surprised that this still has not been done at this point in time. For context, anyone using Gatsby, witch has reach router under the hood, cannot use this router at all with React 17. So...? |
@david-j-davis I hear you. Lots of Gatsby and Storybook users visit this Issue and the related PR's. For GastbyJS 3.0 users, they can look at this work-around for their Jest tests: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/#reach-router |
When using NPM v7, you will get an error instead of a warning, which is a bit disturbing. By using Storybook I just can't use npm install because of this issue. Any news or workaround about this ? |
Possibly the only way to get around it with npm7+ for the moment is using the @ryanflorence @blainekasten @chaance @cassidoo @marcysutton @mjackson |
Nobody working on this issue? |
Can you release a new version making this package compatible with React 17? @blainekasten |
@VictorGaiva This one? storybookjs/storybook#14619 |
We want to upgrade to React 17, but Reach Router does not work with React 17: reach/router#429 Also, the Reach + React Router projects announced an intention to join forces and just continue as React Router: https://reacttraining.com/blog/reach-react-router-future/ Signed-off-by: Julius Volz <[email protected]>
We want to upgrade to React 17, but Reach Router does not work with React 17: reach/router#429 Also, the Reach + React Router projects announced an intention to join forces and just continue as React Router: https://reacttraining.com/blog/reach-react-router-future/ Signed-off-by: Julius Volz <[email protected]>
We want to upgrade to React 17, but Reach Router does not work with React 17: reach/router#429 Also, the Reach + React Router projects announced an intention to join forces and just continue as React Router: https://reacttraining.com/blog/reach-react-router-future/ Signed-off-by: Julius Volz <[email protected]>
We want to upgrade to React 17, but Reach Router does not work with React 17: reach/router#429 Also, the Reach + React Router projects announced an intention to join forces and just continue as React Router: https://reacttraining.com/blog/reach-react-router-future/ Signed-off-by: Julius Volz <[email protected]>
Is it possible to make this compatible with React 17, please? |
Node 16 has just moved to LTS which includes npm version 8. Anyone moving to this new node LTS version and using latest versions of react (17) and @reach/router will encounter npm install failures for the first time due to this. So lots of people are about to run into this problem. PS C:\path> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-project@undefined
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"15.x || 16.x || 16.4.0-alpha.0911da3" from @reach/router@1.3.4
npm ERR! node_modules/@reach/router
npm ERR! @reach/router@"1.3.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\username\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\username\AppData\Local\npm-cache\_logs\2021-10-28T07_21_28_487Z-debug.log Is it safe for the time being to just run with |
If you're hitting this issue with the strict enforcement of legacy peer dependencies, you'll probably get an error that looks like:
To fix this properly (i.e. without using
|
gatsbyjs is now only for React 18, if you're using 17 the problem persists. |
@ivalmian You can still use the v1.x for React v17 |
React 17 was just released. There are no breaking changes, but if I try to use it with this package, I get warnings about missing peer-dependencies (this package depends on [email protected]).
Can you release a new version making this package compatible with React 17? @blainekasten
The text was updated successfully, but these errors were encountered: