Encountered an error while building an Angular 7 app using the command ng build --configuration=dev
. The exception shows a single quote prefixed to NgxMatDrpModule. Even after deleting node_modules, package-lock.json and reinstalling node modules, the issue remains unresolved. Any assistance would be greatly appreciated.
Environment:
"dependencies": {
"@angular/animations": "^7.2.15",
"@angular/cdk": "^7.3.7",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/http": "^7.2.14",
"@angular/material": "^7.3.7",
"ngx-mat-daterange-picker": "^1.1.5",
}
"devDependencies": {
"@angular-devkit/build-angular": "~0.13.0",
"@angular/cli": "~7.3.0",
"@angular/compiler-cli": "~7.2.0",
}
ERROR in : Unexpected value 'NgxMatDrpModule in node_modules/ngx-mat-daterange-picker/ngx-mat-daterange-picker.d.ts' imported by the module. Please add a @NgModule annotation. node_modules/ngx-mat-daterange-picker/node_modules/@angular/cdk/coercion/array.d.ts(10,60): error TS1005: ',' expected. node_modules/ngx-mat-daterange-picker/node_modules/@angular/cdk/coercion/array.d.ts(10,61): error TS1005: ',' expected. node_modules/ngx-mat-daterange-picker/node_modules/@angular/cdk/coercion/array.d.ts(10,75): error TS1144: '{' or ';' expected. node_modules/ngx-mat-daterange-picker/node_modules/@angular/cdk/coercion/array.d.ts(10,77): error TS1011: An element access expression should take an argument.