'Angular 11 stuck on "Generating browser application bundles (phase: building)"
Solution 1:[1]
Just keep in mind that you might have to do some changes in your angular.json file.
- In architect > build > configurationsection add:
"development": {
  "buildOptimizer": false,
  "optimization": false,
  "vendorChunk": true,
  "extractLicenses": false,
  "sourceMap": true,
  "namedChunks": true
},
- In architect > build
"defaultConfiguration": "production"
- In architect > serve > configurationsection add:
 "development": {
   "browserTarget": "{{PROJECT_NAME}}:build:development"
  }
Note: You should put the actual project name in the place of {{PROJECT_NAME}} e.g. "browserTarget": "my-project:build:development"
- In architect > servesection add:
"defaultConfiguration": "development"
Solution 2:[2]
Same error here.
Cause: There was a .css file wich only contained comments.
Solution: Delete all comments in this file, or add at least one css class.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | |
| Solution 2 | stroboshaver | 

