I encounter this error when building my React app using an Azure DevOps build pipeline. Any ideas on how to resolve it? I tried updating my tsconfig to include the "exclude": ["node_modules"] and "skipLibCheck": true properties, but still the error persists..
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"strict": false,
"noImplicitAny": false,
"strictPropertyInitialization": false,
"esModuleInterop": true,
"skipLibCheck": true
},
"include": ["src/*"],
"exclude": ["node_modules"]
}
I needed to update my
.csprojto useReactTsConfiginstead ofContentfor anytsconfig.jsonfiles that were in nested folders: