TS1086: An accessor cannot be declared in an ambient context.
解决方法1(实测)
更新 typescript 版本,并禁用版本检查
- Upgrade to Typescript 3.7.4 + workarounds
- angularCompilerOptions.disableTypeScriptVersionCheck=true
- added polyfills.ts: __importDefault
升级TS版本
修改相关设置
解决方法2(未实测)
ng update --next @angular/cli --force