Encountering an error during the compilation of a TypeScript project that was functioning perfectly prior to upgrading to V2. I have transitioned from Typings to @Types and am only importing @Types/node in the project.
Severity Code Description Project File Line Suppression State Error TS2309 Build:An export assignment cannot be used in a module with other exported elements. XXXXXXXXX C:\Projects\XXX\XXXXXXXXX \node_modules\@types\node\index.d.ts 3626
Here is the TsConfig configuration -
{
"compilerOptions": {
"moduleResolution": "node",
"target": "es5",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipDefaultLibCheck": true,
"outDir": "../wwwroot/app",
"lib": [ "es6", "dom" ],
"types": [ "node" ]
},
"exclude": [ "bin", "node_modules" ],
}
I have come across someone else facing the same error without a solution. It seems like a minor setup or config issue, as the project compiled perfectly fine before the update. Any assistance would be highly appreciated.