cloudinary / cloudinary_angular

Cloudinary Angular client library
MIT License
305 stars 228 forks source link

Angular 9 - Deprecated use of ModuleWithProvider without a type #258

Closed arthurRbr closed 4 years ago

arthurRbr commented 4 years ago

Hello,

I'm getting the following error at compilation time. I'm using cloudinary 1.1.0 and @angular/core 9.0.5.

ERROR in node_modules/@cloudinary/angular-5.x/src/cloudinary.module.d.ts:17:93 - error NG6005: CloudinaryModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.

17     static forRoot(cloudinaryJsLib: any, cloudinaryConfiguration: CloudinaryConfiguration): ModuleWithProviders;
eyalktCloudinary commented 4 years ago

Hey @arthurRbr, support for Angular 9 was added in our latest release of the SDK - 1.2.0 https://github.com/cloudinary/cloudinary_angular/releases/tag/(5.x)1.2.0-rc.0 Can you please try installing the latest version and see if the issue persists?