Skip to content
Advertisement

Tag: angular-cli

Cant start angular project

I was having some problems with an angular project so i reinstalled nodejs and angular cli however now when i try to run ng serve i get this error: enter image description here now ive done the typical google searching for this problem and it led me to stackoverflow with making sure the nodejs is in the enviroment variables path

Cannot find module ‘@angular-devkit/schematics/tasks’

when I try to add @angular/material to my project I get this error. Using Angular Cli: 7.2.1, Node 11.6.0 Cannot find module ‘@angular-devkit/schematics/tasks’    Error: Cannot find module ‘@angular-devkit/schematics/tasks’    at Function.Module._resolveFilename (internal/modules /cjs/loader.js:603:15)    at Function.Module._load (internal/modules/cjs/loader.js:529:25)    at Module.require (internal/modules/cjs/loader.js:657:17)    at require (internal/modules/cjs/helpers.js:22:18)    at Object. (/Users/ricardobaeza/Projects/node_modules/@angular/material/schematics/ng-add/index.js:10:17)    at Module._compile (internal/modules/cjs/loader.js:721:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)    at Module.load (internal/modules/cjs/loader.js:620:32)    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)    at Function.Module._load (internal/modules/cjs/loader.js:552:3) Answer

How to get rid of Function calls are not supported in decorators in Angular aot compiling?

I am testing a Highcharts Angular2x Wrapper. At first, I had no problem using Angular CLI (1.6.1) “ng serve” and profiling performance with Chrome. Then, i tried to use ahead-of-time compiling to see how that affects the performance. So, using: I get the following error: Now, i know that aot generates factory code for modules and somehow “transformes” templates to

Advertisement