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

Remove blockers that cause 1-start branch ngrx to fail for Angular 13+ users #36

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

Open
Nmuta wants to merge 2 commits into angular-university:1-start
base: 1-start
Choose a base branch
Loading
from Nmuta:1-start

Conversation

@Nmuta
Copy link

@Nmuta Nmuta commented Apr 14, 2022

For Angular 13+ users, there have been issues with the 1-start branch.

the ng add @ngrx/store
trying ng add @ngrx/store@latest will not work either.

➜ ngrx-course git:(1-start) ✗ ng add @ngrx/store

leads to these types of errors:
"An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID" when executing "ng add @ngrx/store".

"ng add @ngrx/store@latest" works for some users but not all.

The key issue appears to be that @ngrx is hard coded in the 1-start branch package.json. I removed all ngrx entries and then added some lines to the README to prompt the user to install all of these dependencies manually:

 ng add @ngrx/store
 ng add @ngrx/router-store
 ng add @ngrx/effects
 ng add @ngrx/data
 ng add @ngrx/store-devtools

My pull request essentially sets users up for success to install the newer version of @ngrx in Angular 13+ to help avoid dependency conflicts specifically on the 1-start branch.

Nmuta added 2 commits April 14, 2022 10:17
The hard coded ngrx entries in the package.json in the 1-start branch were creating conflicts for Angular 13 + users . Deleting them and then having people reinstall them manually appears to be the best solution. Users will have to manually do : 
 ng add @ngrx/store
 ng add @ngrx/router-store
 ng add @ngrx/effects
 ng add @ngrx/data
 ng add @ngrx/store-devtools
@Nmuta Nmuta changed the title (削除) 1 start (削除ここまで) (追記) Remove blockers that cause 1-start branch ngrx to fail for Angular 13 users (追記ここまで) Apr 14, 2022
@Nmuta Nmuta changed the title (削除) Remove blockers that cause 1-start branch ngrx to fail for Angular 13 users (削除ここまで) (追記) Remove blockers that cause 1-start branch ngrx to fail for Angular 13+ users (追記ここまで) Apr 14, 2022
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 によって変換されたページ (->オリジナル) /