
ts files that I loaded were considered an "isolated virtual project" - not hard to understand why they were generating errors. Typescript error: cannot find name in visual studio stack overflow node js provide ts(2304) error app angularjs inconsistent x errors angular promise code. So, VS Code thought that my project only consisted of two files. ts files underneath the tsconfig.json file are automatically considered part of the project) or you need to list all files of your project in that section. Or you could use NuGet Share answered at 14:43 Michael Hancock 2,504 1 19 34 Add a comment 0 Try to add types/knockout to your project/package. You either need to leave out the files section (then all. 1 Depending on your project setup you will either want to npm install types/knockout. Longer versionĪdding a files limits our project to those two files and if you open other files not referenced by those two files then they end up in an isolated virtual project.

You may need to remove it in your project, as well, or perhaps just "fix" it to include all relevant.


My tsconfig.json file was configured incorrectly. After many sad days of chasing this problem - I finally found a GitHub Issue on the VS Code GitHub that explains what is going on.
