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
history was missed as a peer dep #8198
Conversation
It's a direct dependency now, maybe your package-lock needs to be updated?
|
We are importing "history" in "react-router-dom" without it existing directly in the package.json. It only exists in the package.json of "react-router". We will want to add it to "react-router-dom" 's package.json deps as well since it does in-fact directly import / re-export from history. |
Ya in anycase, history is directly used by Ill let you guys decide if its a direct dep or a peerDep. Just let me know when this is ready, and not sure when/if this is a regression — coz we've been on |
History is a direct dependency. We need to do the same for react-router-native too. |
Done. I'll wait for tests to pass and merge it in. |
Thanks for being so swift with this done @timdorr 🤝 Just wondering how long till this lands on npm? |
Co-authored-by: Tim Dorr <git@timdorr.com>
Ah thanks for that one @timdorr — can see its now in v6.0.1. |
Check;
react-router/packages/react-router-dom/server.tsx
Line 2 in 4ae8f46
Currently not able to bundle react-rotuer-dom, as there is no dep on
history
in the file tree.Worth noting seems to be only if pnpm is used, maybe just different linking strategy between it and yarn/npm.