HTMLIonSearchBarElement and HTMLIonInputElement Invalid with Angular Latest

I just updated Angular to v21 and updated to the latest versions of Capacitor and Ionic/Angular. I now get these errors when building my app:

I did this because ionic generate was conflicting with the Angular Schematic and unable to generate any components or services. Ionic generate now works, but now the app won’t build. Here are the versions I have:

What is the correct versioning to get everything to work?

Thanks!

This is a known issue. See: bug: TS2320: Interface 'HTMLIonInputElement' cannot simultaneously extend types 'IonInput' and 'HTMLStencilElement' · Issue #30650 · ionic-team/ionic-framework · GitHub

I’m personally using "skipLibCheck": true on tsconfig.json as a temporary workaround.

1 Like

Worked for me, too - thanks!