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

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

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

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant