TypeScript - TS2403 Subsequent variable declarations must have the same type. Variable 'module' must be of type 'NodeModule'
Got a TypeScript error when trying to get my Angular app up and running:
Error TS2403 Subsequent variable declarations must have the same type. Variable 'module' must be of type 'NodeModule', but here has type '{ id: string; }'. TypeScript Virtual Projects C:\projects\MyAngularClient\src\typings.d.ts 2 Active
To fix it, I had to comment out the module declaration typings.d.ts:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SystemJS module definition */ | |
/*declare var module: { | |
id: string; | |
}; | |
*/ |