TS1086: An accessor cannot be declared in ambient context

前端 未结 12 1537
自闭症患者
自闭症患者 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:41

    I got the same issue when adding @angular/flex-layout to my Angular 8 project now with

    `npm install @angular/flex-layout --save`.
    

    This since now that command installed the major 9th version of the flex-layout package. Instead of upgrading everything else to the last version, I solved it by installing the last 8th major version of the package instead.

     npm install @angular/flex-layout@8.0.0-beta.27 --save
    

提交回复
热议问题