[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"

9 comments
Comment actions Permalink

Hello Harald,

Please try calling File | Invalidate caches and restart.

1
Comment actions Permalink

Hello Konstantin,

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

best regards

Harald

0
Comment actions Permalink

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

0
Comment actions Permalink

 Thanks for the tip, it solved issue for me.

0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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?

0
Comment actions Permalink

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
Comment actions Permalink

It's an action in File main menu:

0

Please sign in to leave a comment.