I ran an angular project today, and it told me it had a lot of low vulnerabilities and a few high ones. so I typed: *ng update @angular/core @angular/cli *ng update
but now when I try to run it, it gives me these errors:
Error: ./src/main.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getDiagnosticsForFile is not a function
at C:\.....\Angular\node_modules\@ngtools\webpack\src\ivy\plugin.js:384:60
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: ./src/polyfills.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getDiagnosticsForFile is not a function
at C:\.....\Angular\node_modules\@ngtools\webpack\src\ivy\plugin.js:384:60
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: (webpack)-dev-server/client?http://0.0.0.0:0&sockPath=/sockjs-node
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getDiagnosticsForFile is not a function
at C:\....\Angular\node_modules\@ngtools\webpack\src\ivy\plugin.js:384:60
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: ./src/main.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getDiagnosticsForFile is not a function
at C:\.....\Angular\node_modules\@ngtools\webpack\src\ivy\plugin.js:384:60
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: ./src/polyfills.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getDiagnosticsForFile is not a function
at C:\......\Angular\node_modules\@ngtools\webpack\src\ivy\plugin.js:384:60
at processTicksAndRejections (internal/process/task_queues.js:93:5)