TS1086: An accessor cannot be declared in ambient context

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

    Looks like you have recently installed flex-layout package. Try removing this package folder from your node_modules folder and reinstalling previous version of this package.

    Recently (2 days before current date), angular released latest angular-cli version (v9.0.1) due to which many packages are updated to support this latest cli version. In your case you might have old cli version and when you installed this package it was downloaded for latest cli version by default. So try downgrading your package version. Worked for me atleast.

    Also, dont forget to downgrade the version of your package in package.json file

提交回复
热议问题