From 593f914cfea503c75e392de884cbae4510287ae4 Mon Sep 17 00:00:00 2001 From: Nmuta Jones Date: Thu, 14 Apr 2022 10:17:04 -0600 Subject: [PATCH 1/2] delete ngrx from package.json 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 --- package.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/package.json b/package.json index 348e9d27..3747af9a 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,6 @@ "@angular/platform-browser": "^13.0.3", "@angular/platform-browser-dynamic": "^13.0.3", "@angular/router": "^13.0.3", - "@ngrx/data": "^8.0.1", - "@ngrx/effects": "^8.0.1", - "@ngrx/entity": "^8.0.1", - "@ngrx/router-store": "^8.0.1", - "@ngrx/store": "^8.0.1", - "@ngrx/store-devtools": "^8.0.1", "body-parser": "^1.18.2", "core-js": "^2.4.1", "express": "^4.16.2", From ebd9b004594dae9aa2cb7ecf933f2a9b88d9acb8 Mon Sep 17 00:00:00 2001 From: Nmuta Jones Date: Thu, 14 Apr 2022 10:19:58 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 40f5b048..f06a828f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,17 @@ Its also possible to install the modules as usual using npm: This should take a couple of minutes. If there are issues, please post the complete error message in the Questions section of the course. +# Manually adding ngrx dependencies + +In versions of Angular 13 and greater, it may be neccesary to manually ng add ngrx dependencies in order have all of the required ngrx dependencies needed for this application to run. You may need to run all of these commands in the root directory after your initial npm install : + + ng add @ngrx/store + ng add @ngrx/router-store + ng add @ngrx/effects + ng add @ngrx/data + ng add @ngrx/store-devtools + + # To Run the Development Backend Server We can start the sample application backend with the following command: