Type errors for jasmine types

Hi, 
since the latest Webstorm update, I suddenly get these annoying type errors in all of my unit tests. This used to work fine for years without fideling with anything in the typescript or linter config. I thought this could maybe come from the new Angular Typescript Language service, but disableling it, hasn't helped. The jasmine and jasminewd2 are included in my tsconfig and I have no idea, where to look further.

Also I wonder if the language powered type engines and the language services may interfere with each other. Do I still need to activate tslint?

Thanks

Sebastian

0

Hi Sebastian,

 

The error comes from the ESLint linter. Such issues can occur if ESlint can not resolve the module,
which makes it to infer the type as any. This must be an issue with the project configuration. What is a result of running eslint in terminal for your app? 

 

Also I wonder if the language powered type engines and the language services may interfere with each other. Do I still need to activate tslint?

 

No and no. The issue doesn't have any relation to the language powered type engines and the other language services. They do no interfere with ESLint in any way.

0

Thanks Elena, I just found the error: Obviously jasminwd2 types caused the problems, which emerged due to stricter rules with the new IDE version. I excluded them specifically for the unit tests and now everything works fines again.

0
Great, thanks for the update!
0

请先登录再写评论。