-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
@types/react-router-dom issue when compiling executor #10238
Comments
Hey @dmaksimov, it may be unrelated, but some of your @nrwl/* packages don't line up with the version of Can you correct this and check that the issue still reproduces? An easy way to fix this would be to run |
Hey @AgentEnder, I tried migrating to the latest version of nx using This is the updated nx report:
I tried this on the nx-examples repo which is using nx 14 and had the same issue. I also tried creating a brand new workspace using create-nx-workspace@latest and generated a React app with a router and was experiencing the same issue. If I remove the |
You should be safe to remove it. We recently got the update from react-router-dom from v5 to v6. v5 needed additional types, while v6 has included types. The types should be removed by a nx migration for the next release |
Great, thank you! |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I'm getting the following error when I attempt to compile an executor.
NX is installing a dependency for
@types/[email protected]
which is for[email protected]
but the installed version of react-router-dom is 6.3.Expected Behavior
I would expect it to compile without any errors
Steps to Reproduce
I was able to reproduce the error on nx-examples. I opened a PR here: nrwl/nx-examples#200
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: