Skip to content

Make SDK compatible with Angular 18 - #116

Closed
hypnotoad08 wants to merge 6 commits into
imagekit-developer:masterfrom
hypnotoad08:master
Closed

hypnotoad08 wants to merge 6 commits into
imagekit-developer:masterfrom
hypnotoad08:master

Conversation

@hypnotoad08

@hypnotoad08 hypnotoad08 commented Aug 20, 2024

Copy link
Copy Markdown

I am attempting to use this SDK in an Angular 18 project and it is incompatible. I see the library is targeting Angular 12 which was released 3 years ago and has been out of active support for 2 years and 9 months. - https://endoflife.date/angular

I have bumped the dependencies up to Angular 16 and made a change to the imagekitio-angular.module.ts to include CUSTOM_ELEMENTS_SCHEMA as elements like <ik-upload> are invalid with out it.

I have built the library, packaged it, and installed it locally in my app. I am now able to use <ik-upload> in my standalone Angular 18 components.

In addition to installing the custom built version of the SDK, Angular 18 requires you to use the following syntax when defining the ImagekitioAngularModule.forRoot in my AppConfig providers.

importProvidersFrom( ImagekitioAngularModule.forRoot({
      urlEndpoint: "endpointURL",
      publicKey: "",
    })

@hypnotoad08

Copy link
Copy Markdown
Author

@ahnv Any progress/ comments on this? Angular is now on version 19 as of last November.

@imagekitio

Copy link
Copy Markdown
Contributor

Thanks for this contribution. The SDK was rewritten and released as v6.0.0 (@imagekit/angular) in January 2026, which supports Angular 14 through 21 and no longer contains the sdk/ workspace or the ik-upload component this PR modifies, so it's now superseded. Current usage is documented at https://imagekit.io/docs/integration/angular.

@imagekitio imagekitio closed this Sep 16, 2026
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

Successfully merging this pull request may close these issues.

2 participants