eakoriakin / ionic-selectable

Ionic Selectable is an Ionic versatile and highly customizable component that serves as a replacement to Ionic Select, and allows to search items, including async search, create items, customize the layout with templates and much more. It provides an intuitive API and is easy to set up and use.
MIT License
550 stars 123 forks source link

Module '"@ionic/core"' has no exported member 'HeaderFn'. for Ionic Selectable v5(alpha) after upgrade to Ionic 7 / Angular 16 #418

Open pjc2007 opened 1 year ago

pjc2007 commented 1 year ago

After upgrading to Ionic 7 / Angular 16, I could not use the release version of this Ionic Selectable as Angular 16 now needs all libs to be Ivy compatible,

I then tried v5(alpha) but I now get the error

Module '"@ionic/core"' has no exported member 'HeaderFn'.

Would be great if we could get this working, as want to update to the latest Ionic, Angular, and really want to continue using this library, as is is a great component.

iamrsojitra commented 1 year ago

@pjc2007 Can you please try v5.0.0?

imeeran commented 6 months ago

I am facing the same problem @pjc2007 are you able to fix it? Hello @vc-rakesh are using 5.0.0 and is it working?

pjc2007 commented 6 months ago

I am facing the same problem @pjc2007 are you able to fix it? Hello @vc-rakesh are using 5.0.0 and is it working?

Unfortunately never got a fix in time so had to remove the component , so no didn't try b5

imeeran commented 6 months ago

I have faced the same in ionic 7 and I have tried 4.9.0 and made the following changes in app.module.ts and it worked. You can find the reference here : https://stackoverflow.com/a/77955756/7320814

@NgModule({
  imports: [
    IonicSelectableModule // remove from here
  ],
  providers: [
    IonicSelectableModule // paste here
  ]
})