Webstorm wrong type declarations with Webpack and Yarn (berry) pnp.js
I have got a React app with TypeScript run on yarn berry and unfortunately in this combination Webstorm wrongly resolves type declarations.
Any ideas on why it works this way? Clicking on any react package/function moves me to .js file, instead of d.ts from types.
Here is the project in order to reproduce a problem and a couple of screenshots for better understanding: https://github.com/tomsonpl/react_types
In this case I have a major problem with React library.
I am using:
yarn 2.0.0-rc.33,
webstorm 20.1.2
Please sign in to leave a comment.
Can't see any screenshots....
what steps should I use to reproduce the issue with the provided repo?
Note that the Navigate | Declaration action intentionally navigates to the JavaScript sources in this case, please see WEB-28729,
d.tsare used for completionTrue, screenshots are not here...
To reproduce please do "yarn install" while having yarn berry set.
The issue here is I want to jump to d.ts. how to force this? Please note that packages like "redux" that do not have separate types but have them included - navigates correctly.
Thanks, reproduced
Please follow https://youtrack.jetbrains.com/issue/WEB-43871 for updates