Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the sdk on @angular/core 17.0.2 gives a type error #103

Closed
ahnv opened this issue Mar 11, 2024 · 1 comment
Closed

Using the sdk on @angular/core 17.0.2 gives a type error #103

ahnv opened this issue Mar 11, 2024 · 1 comment

Comments

@ahnv
Copy link
Member

ahnv commented Mar 11, 2024

Reported Issue:

Using the SDK on @angular/core 17.0.2 throws the error "ImagekitioAngularModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type to the ModuleWithProviders type. If this occurence is in library code you don't control, please contact the library authors."

image
image

Issue:

Angular has deprecated "ModuleWithProviders type without a generic"

Please refer to following links for reference associated with this deprecation

Solution:

Add ImagekitioAngularModule type argument to ModuleWithProviders in file imagekitio-angular.module.ts

The code should look like

static forRoot(config: ImageKitConfiguration): ModuleWithProviders<ImagekitioAngularModule> {
@imagekitio
Copy link
Contributor

Fixed in 5.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants