Skip to content
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 tried to access @remix-run/router, but it isn't declared in its dependencies #9298

Closed
simPod opened this issue Sep 19, 2022 · 1 comment
Labels

Comments

@simPod
Copy link

simPod commented Sep 19, 2022

What version of React Router are you using?

6.4.0

Steps to Reproduce

Require with Yarn pnp which is strict about declaring dependencies.

Expected Behavior

No issues

Actual Behavior

Yarn pnp gives:

react-router-dom tried to access @remix-run/router, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

If a package uses a dependency, it must be declared in that package. Providing it via sub-level dep is not correct.

@brophdawg11
Copy link
Contributor

This is a duplicate of #9243 which is fixed in dev and will go out soon in a 6.4.1 release 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants