Some settings in tsconfig.json do not take effect in WebStorm.

I'm using WebStorm 2022.1.

I am having trouble with the content of tsconfig.json not being reflected when checking typescript errors.


One example is the case of the null check.

I have edited tsconfig.json as follows.

"strict": true,

And the null check does not work on the return value obtained with getElementById, but it does if the null is placed in a string type.


The correct behavior is as follows (It's the case of opening the same project on VSCode)


This is just one example, and there are many other cases where settings in tsconfig.json are not reflected correctly.

Is there something I am missing in the configuration?


1 comment

how many tsconfig.*.json files do you have in your project? Is the file you have the issue with included in config where strict checking is enabled?


Please sign in to leave a comment.