Reputation: 15
When I reference the declare file for the DOM as below in a typescript file
///<reference path='.\node_modules\typescript\bin\lib.d.ts' />
the typescript compiler tsc throws an error as below:
The command ... exited with code 1
Upvotes: 0
Views: 2238
Reputation: 250892
You don't need to reference lib.d.ts - it is automatically included by the TypeScript compiler.
Remove that reference and you should be back to normal - the error is probably a duplicate declaration given that it is essentially referenced twice.
Upvotes: 2