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]: Incorrect Module Path in server.d.ts Causes TS2307 Error #11526

Closed
arunvishnun opened this issue May 3, 2024 · 1 comment
Closed

[Bug]: Incorrect Module Path in server.d.ts Causes TS2307 Error #11526

arunvishnun opened this issue May 3, 2024 · 1 comment
Labels

Comments

@arunvishnun
Copy link

arunvishnun commented May 3, 2024

What version of React Router are you using?

6.23.0

Steps to Reproduce

Install react-router-dom@6.23.0
Open node_modules/react-router-dom/server.d.ts
There is no ./index file in the root folder to import from. (it is inside dist)

Potential cause: here

Typescript version: ^5

Expected Behavior

No type error

Actual Behavior

Cannot find module './index' or its corresponding type declarations.ts(2307)

@arunvishnun arunvishnun added the bug label May 3, 2024
@brophdawg11
Copy link
Contributor

Duplicate of #11509

@brophdawg11 brophdawg11 marked this as a duplicate of #11509 May 3, 2024
@brophdawg11 brophdawg11 closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants