-
-
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]: "Cannot find module './index' or its corresponding type declarations" in react-router-dom/server.d.ts #11509
[Bug]: "Cannot find module './index' or its corresponding type declarations" in react-router-dom/server.d.ts #11509
Comments
In a previous version this import looked like this: import type { FutureConfig, Location, RouteObject } from "react-router-dom"; And there are no recent changes in source here. So I guess something has changed in a build process maybe? |
Broken by #11358 Also of note, @markdalgleish pointed out we needed to make this change here: #11358 (comment) A temporary workaround may be to import/require from |
This is resolved by #11514 and will be available in the next release |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.23.0
Steps to Reproduce
Install react-router-dom in a TS project, and attempt to compile the project.
Expected Behavior
The project compiles.
Actual Behavior
An error is raised during compilation:
The text was updated successfully, but these errors were encountered: