Angular - Configuration is not set in the workspace

Solution 1:

The error you are getting is because you didn't add it to your serve browserTarget configuration:

"serve":{
   "fr": {
            "browserTarget": "custom-reports:build:fr"
         },
 }

Solution 2:

In Angular 11 you need to place the browserTarget property inside configurations (which is under serve in angular.json file):

"serve": {
    "configurations": {
        "fr": {
            "browserTarget": "custom-reports:build:fr"
        },
    },
},