1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Migration of module federation to native federation in angular 17 project

Discussão em 'Angular' iniciado por Muqthar Ali, Setembro 24, 2024.

  1. Muqthar Ali

    Muqthar Ali Guest

    I am using angular CLI 17 and module federation 17.

    I am trying to migrate to angular new build system. In the existing angular.json, I have this builder

    "builder": "ngx-build-plus:browser",


    To use the new angular build system, I am migrating the module federation to native federation plug in using this migration guide

    I have upgraded module federation to 18.0.4.

    But when I run the below command

    ng g @angular-architects/module-federation:remove --project project-name


    Getting this error


    architect.build.options.main not found for project project-name
    ​

    my angular.json has this hierarchy

    "architect": {
    "build": {
    "builder": "ngx-build-plus:browser",
    "options": {
    "outputPath": "dist/project-name",
    "index": "src/index.html",
    "main": "src/main.ts"
    }


    I don't understand what is the issue here.

    Continue reading...

Compartilhe esta Página