@WebStormIDE works so much worse with TypeScript as with JS: auto-imports are completely broken, completion is oftentimes similar or even worse. Shouldn't be easier to provide better experience considering static nature of TS?
-
-
Replying to @okonetchnikov
Would really appreciate more details about that: IDE and TypeScript versions, screenshots/code samples for the imports that do not work for you, etc. Thank you!
1 reply 0 retweets 4 likes -
Replying to @WebStormIDE
I'm using latest EAP version of WebStorm and TypeScript 3.0.1. Here is an example of "jump to definition" for JS and TS files: https://www.dropbox.com/s/yw3qou5f2zmrycd/Screen%20Recording%202018-11-19%20at%2010.33.10.mov?dl=0 … and here is an example of module resolution& auto-import for JS and TS:https://www.dropbox.com/s/f12gnyqy0pdfjil/Screen%20Recording%202018-11-19%20at%2010.37.41.mov?dl=0 …
1 reply 0 retweets 0 likes -
Replying to @okonetchnikov
Can you please show the definitions of Box and Token? Thanks!
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE
Here is Box component. Token is longer and I can't screenshot it but it's a functional React component with a default export like Box.pic.twitter.com/8qTDJlf9E7
1 reply 0 retweets 0 likes -
Replying to @okonetchnikov
Are they defined in files with .js or .ts extensions?
1 reply 0 retweets 0 likes -
-
Replying to @okonetchnikov
Can you please check that you have "allowJS": true in your tsconfig.json file related to Search.tsx. Without this option, imports from .js files are disabled in TS.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Added it to my config. It fixed the resolution popup but still doesn't show these React components on completion (when I start typing the name in JSX). This works in JS, though.
1 reply 0 retweets 0 likes
We've reported an issue: https://youtrack.jetbrains.com/issue/WEB-35851 and now are working on a fix. It will land in WebStorm 2018.3.1 or 2018.3.2. Thanks for sharing an example.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.