Problems with TS types in Ubuntu

 I have following type defined:

export type MonitoringType = 'STOP' | 'HEALTH_CHECK_FAILED' | 'MIGRATION_ERRORS'; 

In another source file I have the following code, which is being reported as an error.

The type is being imported from:

import { MonitoringType } from '../../shared/generated/generated-types';

BTW - the generated-types file, is as the name suggests a generated file, and it's rather large. It's about 4K lines of code. I have tried to set

idea.max.intellisense.filesize=5000

In the idea.properties and restart. That does not help either.

The code compiles without any errors, and this is not a problem on my MacBook running OS X.

I have tried to invalidate caches and restart. I have tried to delete the .idea  directory. Neither helped.

Is there anything I need to do, in order to get this working with WebStorm on Ubuntu.

 

Regards,

Flemming Bregnvig

0
1 comment

This does seem to go away, when switching from node 9.8.0 to 9.2.0.

0

Please sign in to leave a comment.