TS1086: An accessor cannot be declared in an ambient context.
解決方法1(實(shí)測)
更新 typescript 版本,并禁用版本檢查
- Upgrade to Typescript 3.7.4 + workarounds
- angularCompilerOptions.disableTypeScriptVersionCheck=true
- added polyfills.ts: __importDefault

升級TS版本

修改相關(guān)設(shè)置
解決方法2(未實(shí)測)
ng update --next @angular/cli --force