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

Make SDK compatible with Angular 18 #116

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hypnotoad08
Copy link

@hypnotoad08 hypnotoad08 commented Aug 20, 2024

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: "",
    })

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.

1 participant