-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: Angular 12 not compatible with Ionic 6.1.9 #25448
Comments
Hi! We have the same issue. |
Thanks for reporting this issue! In in the interim downgrade your application to Thanks! |
Downgrading to 6.1.8 seems to fix the problem. Will wait for 6.1.10 |
Can either of you test with this dev-build and let me know if the problem is resolved?
I've validated it works with:
Appreciate the extra testing/second set of eyes. Thanks! |
As far as I was able to test on one of my repository, it seems to fix the problem :) |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
While upgrading a fully functional project using router and ionic 5 from angular 11 and ionic 5 to angular 12 and ionic 6, following error occurs.
Please note keeping ionic 5 along with angular 12 doesn't produce problem. But we need some ionic 6 features for our project.
Expected Behavior
No error while upgrading to angular 12 on a project using routing and ionic 6 since packages are indicated to be compatible.
Steps to Reproduce
ionic start ionic6 tabs --cordova --no-deps
Delete Tabs module and point to Explore container component as the only route, adding component in app.module.
Change angular 14 for angular 12 which is stated to be compatible with on ionic page.
Error occurs.
Code Reproduction URL
https://github.com/blackholegalaxy/repro-ionic-bug
Ionic Info
$ ionic info
Ionic:
Ionic CLI : 6.19.1 (C:\Users\X\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.1.9
@angular-devkit/build-angular : 12.2.17
@angular-devkit/schematics : 13.3.7
@angular/cli : 12.2.17
@ionic/angular-toolkit : 6.1.0
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v16.13.2 (C:\Program Files\nodejs\node.exe)
npm : 8.1.2
OS : Windows 10
Additional Information
The error points to ionic-angular file which tries to land in angular 14
else
block.The text was updated successfully, but these errors were encountered: