I have Angular 8. it is working with typescript version of 3.4.5. so solve this issue do below steps.
step 1) go to the tsconfig.json file
step 2) add skipLibCheck: true in "compilerOptions" object. It works for me.
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"strict": true,
"target": "es5",
"declaration": true,
"declarationDir": "dist-debug/",
"skipLibCheck": true, /// Needs to be true to fix wrong alias types being used
},
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…