Skip to content
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

chore: updates angular starters to v17 #1817

Merged
merged 8 commits into from
Nov 14, 2023
Merged

chore: updates angular starters to v17 #1817

merged 8 commits into from
Nov 14, 2023

Conversation

sean-perkins
Copy link
Contributor

Updates the modules and starter base angular projects to default to Angular 17.

Notes for reviewers:

  • I could not find a reason for the @types/node dev-dependency. It was introduced in supporting Angular 11, but is definitely not a required dev dependency for Angular and isn't a part of the project defaults when generating a project with ng new. As such, I've removed it.

@sean-perkins sean-perkins requested a review from a team as a code owner November 10, 2023 01:00
@sean-perkins sean-perkins requested review from liamdebeasi and removed request for a team November 10, 2023 01:00
@sean-perkins sean-perkins changed the base branch from main to sp/gh-node November 10, 2023 18:13
Base automatically changed from sp/gh-node to main November 10, 2023 18:15
@@ -4,7 +4,7 @@
<ion-content>
<ion-list id="inbox-list">
<ion-list-header>Inbox</ion-list-header>
<ion-note>[email protected]</ion-note>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After upgrading the lint package, using the @ resulted in an error:

Error: src/app/app.component.html:7:23 - error NG5002: Incomplete block "ionicframework". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.

"@ionic/angular-toolkit": "^9.0.0",
"@types/jasmine": "~4.3.0",
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "5.3.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgraded the lint plugin to v6 as a result of this error:

/Users/sean/Documents/ionic/starters/build/angular-official-sidemenu/src/app/app-routing.module.ts
  0:0  error  Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead

Copy link
Contributor

@liamdebeasi liamdebeasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting the following warning when trying to build an app:

Option "browserTarget" is deprecated: Use 'buildTarget' instead.

Copy link
Contributor

@liamdebeasi liamdebeasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I'm getting this error:

Error: Schema validation failed with the following errors:
  Data path "" must have required property 'browserTarget'.

Not really sure why this error isn't showing up on CI though 🤔

@sean-perkins
Copy link
Contributor Author

@liamdebeasi which starter template are you testing against?

@liamdebeasi
Copy link
Contributor

angular-official-blank

@sean-perkins
Copy link
Contributor Author

Do you have a globally installed version of Angular CLI? If so is the version less than v17?

If so, can you try updating it:

npm install -g @angular/cli

I'm unable to reproduce locally with Angular CLI v17.0.0, unless you are seeing it for something other than start/build:

CleanShot 2023-11-13 at 11 40 28

Copy link
Contributor

@liamdebeasi liamdebeasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Installing Angular CLI v17 fixed the issue. This all looks good now.

@sean-perkins sean-perkins merged commit 2e6114a into main Nov 14, 2023
30 checks passed
@sean-perkins sean-perkins deleted the sp/angular-17 branch November 14, 2023 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants