Angular after adding @angular-architects/module-federation npm Project give runtime error

Discussão em 'Angular' iniciado por Krish Dunn, Dezembro 6, 2024.

  1. Krish Dunn

    Krish Dunn Guest

    I have added @angular-architects/module-federation NPM in existing project Angular version 16. it project build successfully with ng serve but it throw an error on browser console

    1. Error: Shared module is not available for eager consumption
    2. Cannot use 'import.meta' outside a module Error Image

    to add module-federation i use below command ng add @angular-architects/module-federation@16.0.4 --project Application --type remote --port 4230

    I try with new project it working as expected.

    Continue reading...

Compartilhe esta Página