[solved][TypeScript] Unresolved basetypes

Hello,

I have a strange problem here, which I can't solve by myself.

Recently I set up my new Computer with Windows 8.1 and installed PhpStorm 7

When I create something in TypeScript, the Editor marks the base JavaScript types (number, string, boolean) with red (see also screenshot).
There are no other libraries referenced or in use.

phpstorm1.png

The remarkable thing is, that the script compiles flawlessy without any errors to JavaScript. I cross checked this, by compiling the script manually via command-line.

Do you have any hints / suggestions for me?

Thanks in advance!

Changed the subject from "[TypeScript] Unresolved basetypes" to "[solved][TypeScript] Unresolved basetypes"

2
9 comments

Hello Harald,

Please try calling File | Invalidate caches and restart.

3

Hello Konstantin,

thank your for the quick reply, emptying chaches & restarting solved my problem.

best regards

Harald

0

invalidate & restart didn't work for me. but installing the newest intellij release did work.

0

 Thanks for the tip, it solved issue for me.

0

I had the same issue with a new project.  After I enabled Compile to Typescript, the error went away.

0

I am facing the same issue but the command doesn't work on mac.

0

what command doesn't work for you? Did you try clearing the caches (File | Invalidate caches, Invalidate and restart)? also, is the Typescript service enabled in Preferences | Languages & Frameworks | TypeScript?

1

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206351109/comments/206940105

 

This reply says "Please try calling File | Invalidate caches and restart"

I am not sure if its a command or instruction

0

It's an action in File main menu:

1

Please sign in to leave a comment.