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

前端 未结 7 2475
离开以前
离开以前 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:16

    To resolve this issue, we will have to check the angular version used in your project. Based on the angular version we have to update the ngx-daterangepicker-material libray in the package.json.

    Check the below to find suitable library version for your angular project:

    Versions:

    Angular      ngx-daterangepicker-material
    >=9.0.0      v2.3.x and v3.x
    <9.0.0       v2.2.x and below
    

    Reference: https://www.npmjs.com/package/ngx-daterangepicker-material

    Run the below comment for prod build if you face javascript heap out of memory issue in normal "ng --prod":

    node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build client --prod
    

提交回复
热议问题