I enabled a webpack alias in my jsconfig.json file for VSCode.
But when I go to definition of a React component, I get 2 definitions:
How do I get rid of the index.d.ts file ? Knowing that I use only jsx.
All of the components in the project are written using the React.FC type and are automatically exported.
One way to fix an issue with the "Goto Location: Multiple Definitions" feature in the Editor is to change the configuration from peek to goto.
This may hide some additional definitions that may be useful, but it will make the feature work as intended when clicking on components.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With