-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: Angular 10 support #248
Comments
Our testing hasn't really shown any major blockers from having end users just update apps. Are you seeing anything different though? As far as updating the deps that we use to build with, we have a different process for that we follow for that (listed here) |
I did have an issue using the latest angular, ionic, and ionic-cli. I'm not certain if this is an issue that should be in the $ ionic g page home
> ng generate page home --project=app
An unhandled exception occurred: Cannot find module '@schematics/angular/utility/project'
Require stack:
- /redacted/path/to/app/node_modules/@ionic/angular-toolkit/schematics/page/index.js
- /redacted/path/to/app/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /redacted/path/to/app/node_modules/@angular-devkit/schematics/tools/index.js
- /redacted/path/to/app/node_modules/@angular/cli/utilities/json-schema.js
- /redacted/path/to/app/node_modules/@angular/cli/models/command-runner.js
- /redacted/path/to/app/node_modules/@angular/cli/lib/cli/index.js
- /redacted/path/to/app/node_modules/@angular/cli/lib/init.js
- /redacted/path/to/app/node_modules/@angular/cli/bin/ng
See "/tmp/ng-8qbJHz/angular-errors.log" for further details.
[ERROR] Could not generate page. And here's the output of Ionic:
Ionic CLI : 6.10.1 (/redacted/path/to/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.2.2
@angular-devkit/build-angular : 0.1000.0
@angular-devkit/schematics : 10.0.0
@angular/cli : 10.0.0
@ionic/angular-toolkit : 2.2.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : 0.15.1
native-run : 1.0.0
System:
Android SDK Tools : 26.1.1 (/redacted/path/to/.android/sdk)
NodeJS : v12.18.1 (/usr/bin/node)
npm : 6.14.5
OS : Linux 5.4 |
Can you provide a full repo we can use to reproduce the issue? I am not getting this in my Ionic + Angular 10 application. |
@liamdebeasi Sure, https://github.com/andrewbrey/angular-10-ionic-issue-demo |
Thanks! Looks like https://github.com/ionic-team/angular-toolkit needs an update. The exports for |
Thank you very much, and yea that's my read on it too 👍 Let me know if there's any further info I can provide to help triage, cheers! |
I'm going to move this over to the @ionic/angular-toolkit repo so we can track progress there. This seems to be the only blocker for using Ionic with Angular 10. Thanks! |
For context, Angular removed some code in the latest version of Affected code:
Here is the PR that removed the code on Angular's side: angular/angular-cli#17597 One thought is to maybe move to using the |
FWIW, while I haven't had an issue with Ionic on Angular 10, I did see the Angular Update Guide say, "Stop using For us, "schematics": {
"@ionic/angular-toolkit:component": {
"styleext": "scss"
},
"@ionic/angular-toolkit:page": {
"styleext": "scss"
}
} Not sure if that Angular CLI migration is targeted towards schematic authors or end users. Using the Ionic CLI I'm able to successfully generate Pages and Components including their Update: Upon closer inspection, although my project's Angular runtime dependencies and the Angular CLI itself were on v10, other tooling packages such as The issue was my I then tried generating a Page with the Ionic CLI and got the same error as others: |
I am facing the same issue after upgrading from ionic 4 and angular 8. |
Hello! Catching error while running command 🐞 Bug reportCommand (mark with an
|
🎉 This issue has been resolved in version 2.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Feature Request
Update Ionic framework to support Angular 10 and typescript 3.9.
Ionic version:
[x] 5.x
Describe the Feature Request
The new version of Angular came out (Angular 10).
Update Ionic Angular dependencies to support the new version of Angular.
Angular 10 also pushes Typescript to version 3.9.
Describe Preferred Solution
Update Ionic Angular dependencies to support the new version of Angular.
Additional Context
Blog post about release: https://blog.angular.io/version-10-of-angular-now-available-78960babd41
Change Log v10: https://github.com/angular/angular/blob/master/CHANGELOG.md
The text was updated successfully, but these errors were encountered: