Webstorm typescript not type-checking bad class name
I have a typescript project and many of the autocomplete things are working fine, and tslint rules are working fine. I have all the typescript functionality enabled, I have autocomplete on my classes and imports. I am able to shift-click typescript roots defined in my tsconfig also...
buuutttt.... when I do the most basic mistake, like bad class name, I get no complaints.
const x = new jknsdrgjknergkjnbegr(); // will pass validation
Incredibly frustrating getting only compile time feedback.
Does anyone have any ideas?
(I have cleared webstorm caches)
Please sign in to leave a comment.
Can't recreate. With TypeScript service enabled in Settings | Languages & Frameworks | TypeScript I'm getting TSC errors:
With service disabled, I can see `Unresolved type` error:
Do you have TypeScript service enabled for your project? Please attach a screenshot of Settings | Languages & Frameworks | TypeScript page
I tried with it on and off, both the same result. If I put the cursor on the dummy name, and alt-enter, it asks if I want to create the class. So it seems to know that it doesn't exist.... but why no errors (or ever warning)?
Do you have any symlinks in your project path?
Yes! I have a project made up of many "modules" but actually each module is a symlinked directory. So my root project / workspace is really just a directory with a bunch of symlinks
Errors from TypeScript service are not shown in editor when using symlinks - see https://youtrack.jetbrains.com/issue/WEB-30318 :(
Oh... unfortunate. Thanks for the reply!
Is there any targeted fix version?
there is no ETA for this fix:( please follow it (https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications) to be notified on any progress