Hello!!!

ERROR in ../ngx-resizer/ngx-resizer.ts(13,2): Error during template compile of 'NgxResizeModule' Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule' 'NgModule' calls 'ɵmakeDecorator'. node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'. node_modules/ngx-resizer/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'. 

Please tell me how to solve this conflict?)

  • ERROR in ../ngx-resizer/ngx-resizer.ts(13,2): Error during the compilation of the 'NgModule' 'NgModule' calls' ɵmakeDecorator '. It was decided to change the ng build --prod && ng run ng-universal-demo: server: production to ng build --prod --aot = false - build-optimizer = false && ng run ng-universal-demo: server: production - Maxim Cherednik
  • The question remains with ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts (9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'. node_modules/ngx-resizer/node_modules/@angular/core/src/render3/ng_dev_mode.d.ts (9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'. - Maxim Cherednik
  • you cite mistakes, but do not cite the code, adore divination in the thick - overthesanity
  • I don’t know what fragment to give you, because I don’t understand where exactly the error is) I understand that there’s a conflict because of different versions of libraries that use the application and extension ( - Maxim Cherednik

1 answer 1

As a temporary solution, you can specify this line in package.json

 rm -r -f node_modules/ngx-resizer/node_modules 

but it is a crutch (((