-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ionicons errors on typescript >= 4.4.x #1011
Comments
Thanks for the issue. Could you please reproduce this issue in an Ionic app and provide a link to the repo? |
|
Thanks! The issue here seems to be related to something in Ionicons, so I am going to move the issue to that repo. |
Took a closer look and there are a few things at play here:
Changing the @Prop() ariaHidden?: string; to: @Prop() ariaHidden: string; Will result in TypeScript errors in most applications as it now expects developers to explicitly set To get developers unblocked, we plan to remove the While this is a breaking change, That being said, To summarize:
Let me know if there are any questions. Thanks! edit: We identified two use cases where there will be breaking changes:
// Before
iconEl.ariaHidden = "true";
// After
iconEl.setAttribute('aria-hidden', 'true');
{/* Before */}
<IonIcon ariaHidden="true" />
{/* After */}
<IonIcon aria-hidden="true" /> This change is more aligned with what React expects: https://reactjs.org/docs/accessibility.html#wai-aria |
Hi @liamdebeasi, how to resolve this before the fix is released? |
Add |
Great Liam, it works like a charm! Thanks. |
Blocks Angular 13 upgrade |
Thank you, that's great |
I'm facing the same issue... I'm trying to upgrade an ionic app (5.x.x) to Angular 13... but when building there's the following errors:
I will try the "skipLibCheck": true for now and see if it overrides this build errors. |
Hi everyone, Going to lock this thread for now. We have a fix in place and will be shipping the update soon. Please see #1011 (comment) for a workaround. I will update this thread when I have more to share. Thanks! |
Resolved via #1014. I will post here when Ionicons 6.0 has shipped. |
Ionicons 6.0.0 has been released! Please be sure to review the breaking changes when updating: https://github.com/ionic-team/ionicons/releases/tag/v6.0.0 The next Ionic 6 RC will have Ionicons 6.0 installed. |
Prerequisites
Ionic Framework Version
Current Behavior
Attempting to use Ionic 6 RC.0 with Angular 13 beta fails due to the latter requiring TypeScript >= 4.4.3.
Looking at the Ionic/Angular 6 package.json, some of the dependencies are quite out of date. It was my impression that moving forward Ionic was only going to support the last 2 major versions of Angular, which would mean the oldest supported version would be Angular 11, not Angular 8 as things currently stand.
Expected Behavior
That Ionic 6 supports TypeScript >= 4.4.3
Steps to Reproduce
Install Ionic 6 RC + Angular Beta
Code Reproduction URL
No response
Ionic Info
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: