typescript

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",      
    }
}