Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update Dependencies to Angular v14 #571

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

Closed
devlinjunker wants to merge 1 commit into ui-router:master from devlinjunker:angular-v14

Conversation

@devlinjunker
Copy link

@devlinjunker devlinjunker commented Jul 20, 2022
edited
Loading

Steps:

  • updated @angular libs
  • also updated ng-packagr + separated ng-package.json out
  • check build works:

Screen Shot 2022年07月20日 at 3 22 04 PM

Notes:

- also updated ng-packagr + separated ng-package.json out
Copy link
Author

@christopherthielen also created this to align with ui-router/angular#967

Copy link
Author

hmm... idk why the dependency resolution failed here...

Copy link
Author

should we try to re-run this? it looks like it came from the yarn install command

Run yarn install --pure-lockfile
yarn install v1.22.19
[1/[4](https://github.com/ui-router/angular-hybrid/runs/7807634561?check_suite_focus=true#step:4:5)] Resolving packages...
[2/4] Fetching packages...
error https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz: Integrity check failed for "require-directory" (computed integrity doesn't match our records, got "sha[5](https://github.com/ui-router/angular-hybrid/runs/7807634561?check_suite_focus=true#step:4:6)12-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc[6](https://github.com/ui-router/angular-hybrid/runs/7807634561?check_suite_focus=true#step:4:7)/4RIKrui+Q== sha1-jGStX9MNqxyXbiNE/+f3kqam30I=")

Copy link
Author

or should I update the yarn.lock file in my branch? I guess I haven't used yarn much

Copy link
Author

Found these instructions for updating angular dependencies so working on the first steps in the other repos: https://github.com/ui-router/angular/blob/master/add_support_for_new_angular_version.txt

I am noticing that I am seeing the same error on my local machine when trying to run yarn, so I will look into the changes here and/or read up on yarn more maybe....

Copy link
Author

I am closing this PR and will try to follow the instructions in https://github.com/ui-router/angular/blob/master/add_support_for_new_angular_version.txt to create a new branch and PR with the correct changes for updating angular versions

I think this involves:

  1. waiting for Update Dependencies to Angular v14 angular#967 to be merged
  2. waiting for npm release to be cut in https://github.com/ui-router/angular
  3. Following steps from doc above in https://github.com/ui-router/sample-app-angular-hybrid
- in sample-app-angular-hybrid
 - npx ng update @angular/core @angular/cli
 - yarn upgrade-interactive --latest (update uirouter libs)
 - push to a branch 'angular-v14'
  1. following steps from doc above to create new branch/PR (in this repo):
- in uirouter/angular-hybrid
 - target the sample-app branch in downstream_test.json: 
 - "https://github.com/ui-router/sample-app-angular-hybrid.git@update-to-angular-11"
 - update peer deps for angular packages, bumping each range by one
 - update angular packages manually to the lower range supported (for angular 11, set to ^10.0.0)
 - update ng-packagr manually to the lower range supported (for angular 11, set to ^10.0.0)
 - update typescript to the version required by @angular/compiler-cli
 - npx check-peer-dependencies
 - in example
 - npx ng update @angular/core @angular/cli
 - yarn upgrade-interactive --latest (update uirouter libs)
 - gh pr create
 - npm run release
 - revert downstream_projects.json and push
  1. Following steps from above doc to update https://github.com/ui-router/sample-app-angular-hybrid
- in sample-app-angular-hybrid after merging
 - yarn upgrade-interactive --latest (update uirouter libs)
 - push and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /