ERROR ngx-daterangepicker-material An accessor cannot be declared in an ambient context

前端 未结 7 2476
离开以前
离开以前 2021-02-13 23:58

Can you help me out with this error? this my package.json error I keep getting this error:

ERROR in node_modules/ngx-daterangepicker-material/daterangepicker.component.

7条回答
  •  天涯浪人
    2021-02-14 00:14

    I have just solved the issue by following steps

    1. First, remove the node_modules folder from your project folder

    2. In your package.json replace above version for ngx-daterangepicker-material from 2.2.1 to 2.1.9, like

    remove -> "ngx-daterangepicker-material": "^2.2.1",

    add -> "ngx-daterangepicker-material": "^2.1.9",

    1. Run npm install command in terminal and then compile

    It will compile successfully

提交回复
热议问题