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.d.ts(59,9): error TS1086: An accessor cannot be declared in an ambient context.
"@agm/core": "^1.0.0-beta.7",
"@angular/animations": "~8.0.3",
"@angular/cdk": "^8.1.1",
"@angular/common": "~8.0.3",
"@angular/compiler": "~8.0.3",
"@angular/core": "~8.0.3",
"@angular/forms": "~8.0.3",
"@angular/material": "^8.1.1",
"@angular/material-moment-adapter": "^8.1.1",
"@angular/platform-browser": "~8.0.3",
"@angular/platform-browser-dynamic": "~8.0.3",
"@angular/router": "~8.0.3",
"@fortawesome/angular-fontawesome": "^0.4.0",
"@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@syncfusion/ej2-angular-calendars": "^17.4.51",
"@types/jquery": "^3.3.35",
"acorn": "^6.4.1",
"angular-hammer": "^2.2.0",
"angular-svg-icon": "^8.0.0",
"bootstrap": "^4.3.1",
"mat-range-datepicker": "^1.0.5",
"moment": "^2.24.0",
"ng2-datepicker": "^2.3.1",
"ng2-tooltip-directive": "^2.9.20",
"ngx-daterangepicker-material": "^2.2.1",
"ngx-drag-scroll": "^8.0.0-beta.2",
"ngx-infinite-scroll": "^8.0.2",
"ngx-material-timepicker": "^5.5.1",
"popper.js": "^1.15.0",
"pretty-checkbox": "^3.0.3",
"rxjs": "~6.4.0",
"tslib": "^1.11.1",
"xlsx": "^0.15.6",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.800.6",
"@angular/cli": "~8.0.6",
"@angular/compiler-cli": "~8.0.3",
"@angular/language-service": "~8.0.3",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "^5.2.2",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.5.3",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.4.3"
}
``
thank you
I solved the issue by following 2 steps
First remove "ngx-daterangepicker-material": "^2.2.1"
from package.json
Run npm i [email protected]
"ng serve"
It will compile successfully
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With