Cannot use 'import.meta' outside a module in angular mfe?

Discussão em 'Angular' iniciado por Vino, Fevereiro 11, 2025.

  1. Vino

    Vino Guest

    I'm using mfe (module federation microfrontend) in angular and when loading the remoteEntry.js I get the following error in the console:

    import.meta outside a module


    my angular version is 14

    [​IMG]

    webpack.config.js

    exports.module = {
    name: "mfeProfile",
    filename: "remoteEntry.js",
    exposes: {
    './Module': './projects/project-name/src/app/profile/profile.module.ts'}`
    }

    Continue reading...

Compartilhe esta Página