Search code examples
angularwebpackmicro-frontend

Schema validation failed with the following errors: Data path "" must have required property 'outputPath'


I get this error while trying a simple poc for microfrontend with angular. Here is the link to code sample.

I get the error with this command:

npm run start:app1

Schema validation failed with the following errors:
Data path "" must have required property 'outputPath'.

Solution

  • I solved the problem. It was because of the name of builder in angular.json.

    "serve": {
          "builder": "@angular-builders/custom-webpack:browser",
    ...
    }
    

    should be:

    "builder": "@angular-builders/custom-webpack:dev-server",