duluca / local-weather-app

Learn Angular, Material, RxJS fundemantals using OpenWeatherMap.org APIs

Home Page:https://angularforenterprise.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: angularCompiler.getDiagnosticsForFile is not a function

caastrill opened this issue · comments

Got this Error while trying to serve the Chapter 3; any help on how to get past this

TypeError: angularCompiler.getDiagnosticsForFile is not a function
    at /Users/{user}/dev/local-weather-app2/node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/plugin.js:423:60
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Assertion failed: (napi_define_properties(env, exports, 3, descriptors) == napi_ok), function Init, file ../src/fsevents.c, line 128.
Abort trap: 6

i updated my version of Angular by running the below commands and it solved the problem;

ng update @angular/core @angular/cli

All the best