TS1086: An accessor cannot be declared in ambient context

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

    I've updated typescript and tslint versions and removed packages I wasn't using. This solved the problem for me.

    As others pointed here, it seems to be an issue with different TypeScript versions where the generated typings from some library aren't compatible with your TypeScript version.

提交回复
热议问题