I recently upgraded my .Net Core Angular 2 project using SystemJs from Typings to @Types.
The entire project has been rebuilt with the latest VS tooling for .Net Core 1.0.1, TypeScript 2.0.10, and Node.js 7.0.0 as of 12/21/2016.
Everything was working fine until I updated to @Types.
Now, I'm encountering the following Error from @Types/node/index.d.ts:
TS2309 "Build:An export assignment cannot be used in a module with other exported elements." Line 3626
Line 3626 of @Types/node/index.d.ts pertains to the Export for the "assert" module declaration.
Below are my configuration files:
tsconfig.json
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"skipLibCheck": true
},
"compileOnSave": true,
"exclude": [
"node_modules",
"wwwroot/shared/lib"
]
Package.json
"name": "angular-quickstart",
"version": "1.0.0",
"description": "QuickStart package.json from the documentation, supplemented with testing support",
"scripts": {
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
"lite": "lite-server",
"tsc": "tsc",
"tsc:w": "tsc -w"
},
... (remaining content of original text) ...