vscode

module resolution

In older typescript projects, when adding or updating modules that have changed the source of their types, Visual Studio Code may no longer be able to resolve the module. To fix this, explicitly set moduleResolution to node in tsconfig.json:

{
    "compilerOptions": {
        "moduleResolution": "node",      
    }
}

types can only be used in a .ts file

Not only does flow language support need to be installed, but @builtin TypeScript and JavaScript Language Features needs to be disabled. Thanks Idan Dagan.