It’s probably a config error in your tsconfig.json, webpack.config.js, ionic.config.js or gulpfile.js, can you put a gist to them to be able to debug a bit?
Playing around a bit found it it raises that error for each file that is not imported anywhere (an unused file).
Once I import it then code completion and type checking starts working.
Soo are you using an IDE and using it to compile the code? i use the CLI to serve and compile and in some point in time i had this error, so it shouldn’t be an issue with the IDE.
I had the same problem as him and in my case was the tsconfig.json.
There is a parameter called files like so:
…,
“files”: [
“app/app.ts”]
…
or something like that. Well it was showing the whole file with green squiggly lines (VS Code) and after deleting that parameter everything worked perfectly after I restarted VS Code.
By invoking tsc with no input files, in which case the compiler searches for the tsconfig.json file starting in the current directory and continuing up the parent directory chain.
By invoking tsc with no input files and a -project (or just -p) command line option that specifies the path of a directory containing a tsconfig.json file.