-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Bug]: react-router-dom-v5-compat v6.16.0 has an undeclared dependency on @remix-run/router #10904
Comments
This is something with pnpm. |
It's something that happens to work with npm's hoisting algorithm, but does not work with pnpm with Packages should always declare dependencies for packages they directly require or import, and not rely on transitive dependencies getting hoisted. |
What version of React Router are you using?
6.16.0
Steps to Reproduce
tsconfig.json:
index.ts:
Run
pnpm tsc
.Expected Behavior
pnpm tsc
runs without errors.Actual Behavior
The text was updated successfully, but these errors were encountered: