Skip to content

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

@ahnv

Description

@ahnv

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> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions