The Visual Studio 2017 build encounters an error during the build process
src\Service\node_modules\utility-types\dist\aliases-and-guards.d.ts(10,51): Error TS2304: Build:Cannot find name 'bigint
This issue is specific to the pipeline environment, as it works fine locally.
Despite upgrading TypeScript from version 3.1 to 3.7, the build task in Visual Studio fails to recognize the changes and continues to throw errors.
Running this in an Azure pipeline results in the failure of the entire pipeline.
Here is the configuration in the tsconfig file:
{
"compilerOptions": {
"moduleResolution": "node", // csstype included by React
"target": "es2016", // <Counter />
"jsx": "react",
"sourceMap": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"types": ["chrome", "react", "jest", "node"],
"outDir": "./ClientApp/Scripts/js/"
},
"exclude": ["/node_modules"]
}