Closed jroru closed 1 month ago
What file do you expect? BTW condition is <=5.0
, not >5.0
as it looks in your post.
In VS Code with built-in TS 5.4.5 - it correctly navigates to node_modules/@types/react/index.d.ts
If local 4.9.5 or 5.0.4 used - it correctly navigates to node_modules/@types/react/ts5.0/index.d.ts
If that's not what you see - you should provide more details about expectations and configurations.
And you can try tsc --traceResolution
to see how TS resolves definition for that package.
We need a concrete repo here; prose instructions are not precise enough to know what exactly you were doing
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
@types/react
)@types/react
)import { memo } from "react";
) and click go to definition