TS1086: An accessor cannot be declared in ambient context

前端 未结 12 1542
自闭症患者
自闭症患者 2021-02-01 12:16

I have a thousands of this error after initial implementation nad typing in terminal ng serve my-app of and i can\'t resolve it. This is first time for me when i have problem li

12条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 12:49

    In my case downgrading @angular/animations worked, if you can afford to do that, run the command

    npm i @angular/animations@6.1.10
    

    Or use another version that might work for you from the Versions tab here: https://www.npmjs.com/package/@angular/animations

提交回复
热议问题