TS1086: An accessor cannot be declared in ambient context

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

    I had this same issue, and these 2 commands saved my life. My underlying problem is that I am always messing up with global install and local install. Maybe you are facing a similar issue, and hopefully running these commands will solve your problem too.

    ng update --next @angular/cli --force
    npm install typescript@latest
    

提交回复
热议问题