digitalascetic / ngx-pica

@digitalascetic/ngx-pica is an Angular(LTS) module to resize images files in browse
36 stars 26 forks source link

Compiled with warnings - using Angular 6.0.0 #5

Closed toricctan closed 6 years ago

toricctan commented 6 years ago

Hi, thank you for this great library! After npm install (npm install @digitalascetic/ngx-pica --save) and ng serve an Angular 6.0.0 project, warnings, as shown below, appear on terminal.

"WARNING in ../node_modules/@digitalascetic/ngx-pica/node_modules/@angular/core/esm5/core.js 6570:15-36 Critical dependency: the request of a dependency is an expression WARNING in ../node_modules/@digitalascetic/ngx-pica/node_modules/@angular/core/esm5/core.js 6590:15-102 Critical dependency: the request of a dependency is an expression ℹ 「wdm」: Compiled with warnings."

Could you please shed some light on this? Thank you.

michelcve commented 6 years ago

@edezacas Just a hint, you can probably find the fix for the problem @toricctan is reporting here.

https://github.com/angular/angular/issues/20357

Would be nice if you could fix this warning, thx.

edezacas commented 6 years ago

@toricctan @michelcve Related with digitalascetic/ngx-pica/issues/6

TahaDevelop commented 6 years ago

Hello ,

Still having the warning : Critical dependency: the request of a dependency is an expression. Using Angular-cli and the version 2.0.4 of ngx-pica. Some help!

aviaur commented 6 years ago

@TahaDevelop I have like you with Angular 6.1.8 and ngx-pica 2.0.4

WARNING in ....../node_modules/@digitalascetic/ngx-pica/node_modules/@angular/core/fesm5/core.js 4982:15-36 Critical dependency: the request of a dependency is an expression

WARNING in ....../node_modules/@digitalascetic/ngx-pica/node_modules/@angular/core/fesm5/core.js 4994:15-102 Critical dependency: the request of a dependency is an expression

TahaDevelop commented 6 years ago

I also have a build failed with the AOT :+1:

ERROR in ../../../@digitalascetic/ngx-pica/ngx-pica.ts(6,2): Error during template compile of 'NgxPicaModule' Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'NgModule' 'NgModule' calls 'ɵmakeDecorator'. :( :( :(

michelcve commented 5 years ago

@edezacas This one creeped up again for me as well. I get the same error as @aviaur with ngx-pica 2.0.4 and Angular 7.0.2