Home > Blockchain >  Can't start Angular application
Can't start Angular application

Time:12-09

Within the last few days, we have been encountering the following errors (and there doesn't seem to be match find in Google search):

npm start

ng serve

Compiling @angular/core : es2015 as esm2015
Error: Error on worker #1: TypeError: compiler_1.createMayBeForwardRefExpression is not a function

Any ideas why or workaround?

CodePudding user response:

Try to upgrade your global typscript package

npm install -g typscript@latest

CodePudding user response:

Changing the package.json dependency as below resolved the issue for me

"@angular/compiler": "12.2.13", to "@angular/compiler": "^12.2.13",

  • Related