IDEA 14.1.6 - TypeScript compile error "TypeError: host.fileExists is not a function" when using a custom TypeScript version (1.7.5)

Answered

I get a TypeScript compiler error being reported in Intellij IDEA 14.1.6 when using a custom version of TypeScript.  The error states "Error:Error has occurred in the compile process TypeError: host.fileExists is not a function".  I believe this error occurs on an import statement when I am trying to import another module.

Are there any fixes or workarounds for this error?

2 comments
Comment actions Permalink

You must be using TypeScript 1.6 or higher... https://youtrack.jetbrains.com/issue/WEB-18617 is fixed in Idea 15. Please consider upgrading

0
Comment actions Permalink

Thank you for the reply, but I find the lack of a fix in IDEA 14 rather disturbing.  IDEA 14 was released in November 2014, TypeScript 1.6 was released in September 2015.  So, in less than a year IDEA 14 dropped support for the latest version of TypeScript and the only solution is to purchase an upgrade.  We might have to rethink our team's decision to go with IDEA as our IDE.

0

Please sign in to leave a comment.