You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
builder is set to @angular-builders/custom-webpack:dev-server
Running ng serve ends up with message:
ERROR in Cannot read property 'flags' of undefined
After debugging ng serve I can see it comes from method checkUnreachable inside typescript internals. It throws an exception while parsing node_modules/@angular-builders/custom-webpack/node_modules/typescript/lib/typescript.js
My guess it's because of @angular-devkit version mismatch after upgrading to 9.1.0.
Deleting directory node_modules/@angular-builders/custom-webpack/node_modules/@angular-devkit fixes the issue - forces node to use @angular-devkit from node_modules
Describe the Bug
@angular-builders/custom-webpack:dev-server
Running
ng serve
ends up with message:After debugging
ng serve
I can see it comes from methodcheckUnreachable
inside typescript internals. It throws an exception while parsingnode_modules/@angular-builders/custom-webpack/node_modules/typescript/lib/typescript.js
My guess it's because of
@angular-devkit
version mismatch after upgrading to 9.1.0.Deleting directory
node_modules/@angular-builders/custom-webpack/node_modules/@angular-devkit
fixes the issue - forces node to use@angular-devkit
fromnode_modules
Switching to default builder fixes the issue
Minimal Reproduction
https://github.com/kamilchlebek/angular-builders-issue-demo
Steps:
ng serve
➡️ errorExpected Behavior
ng serve
finishes successfully.Environment
The text was updated successfully, but these errors were encountered: