S
S
Samat2021-06-04 13:28:26
Angular
Samat, 2021-06-04 13:28:26

How to fix errors after migrating to angular 12?

Updated the project from 11 to the 12th version off. instructions.

The project itself is launched via "ng serve"
But build stopped building with errors:


Could not find stylesheet file './any.component.scss'.
styleUrls: ['./any.component.scss']

This is issued with ng build

With ng build --prod

Unknown version 16.1.0 of Node.js in stylesheet file \any.component.scss.
✖ Compiling TypeScript sources through NGC
ERROR: Unknown version 16.1.0 of Node.js
An unhandled exception occurred: Unknown version 16.1.0 of Node.js


Who faced?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question