Skip to content

Why Mfe1 app.module.ts(root module) not able to configure in webpack instead of specific modules #61

Description

@Sakol538

I tried in webpack.config.ts:
instead of

exposes: {
    './Module': './projects/mfe1/src/app/users/users.module.ts',
},

replaced with

exposes: {
    './Module': './projects/mfe1/src/app/app.module.ts',
},

main shell i provided the

{
    path: 'users',
    loadChildren: () =>
      loadRemoteModule({
        type: 'manifest',
        remoteName: 'mfe1',
        exposedModule: './Module'
      }).then((m) => m.AppModule),
  }

accessing the main application but i get as shown screenshot error?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions