TS1086: An accessor cannot be declared in ambient context

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

    In my case, mismatch of version of two libraries.

    I am using angular 7.0.0 and installed

    "@swimlane/ngx-dnd": "^8.0.0"
    

    and this caused the problem. Reverting this library to

    "@swimlane/ngx-dnd": "6.0.0"
    

    worked for me.

提交回复
热议问题