Errors: Data path “.builders[‘app-shell’]” should have required property ‘class’

I am getting this error while running my application. Here are the details of my application. Angular CLI: 7.3.3 Node: 10.15.1 Angular: 7.2.7 @angular-devkit/architect -0.13.3 @angular-devkit/build-angular- 0.800.1 @angular-devkit/build-optimizer – 0.800.1 @angular-devkit/build-webpack – 0.800.1 @angular-devkit/core -7.3.3 @angular-devkit/schematics -7.3.3 @angular/cli -7.3.3 @ngtools/webpack -8.0.1 @schematics/angular -7.3.3 @schematics/update 0.13.3 rxjs 6.3.3 typescript 3.2.4 webpack 4.30.0 I have already tried … Read more

What is the purpose of providedIn with the Injectable decorator when generating Services in Angular 6?

When generating services in the Angular CLI, it is adding extra metadata with a ‘provided in’ property with a default of ‘root’ for the Injectable decorator. @Injectable({ providedIn: ‘root’, }) What exactly does providedIn do? I am assuming this is making the service available like a ‘global’ type singleton service for the whole application, however, … Read more

How to set environment via `ng serve` in Angular 6

I am trying to update my Angular 5.2 app to Angular 6. I successfully followed instructions in the Angular update guide (including the update of angular-cli to v6), and now I am trying to serve the app via ng serve –env=local But this gives me error: Unknown option: ‘–env’ I use multiple environments (dev/local/prod), and … Read more

Could not find module “@angular-devkit/build-angular”

After updating to Angular 6.0.1, I get the following error on ng serve: Could not find module “@angular-devkit/build-angular” from “/home/Projects/myProjectName”. Error: Could not find module “@angular-devkit/build-angular” from “/home/Projects/myProjectName”. at Object.resolve (/home/Projects/myProjectName/node_modules/@angular-devkit/core/node/resolve.js:141:11) at Observable.rxjs_1.Observable [as _subscribe] (/home/Projects/myProjectName/node_modules/@angular-devkit/architect/src/architect.js:132:40) ng update says everything is in order. Deleting node_modules folder and a fresh npm install install did not help … Read more