Skip to content

angular 8 module loading #24

@ponnalaxmikanth

Description

@ponnalaxmikanth

i have my route defined as below in my child application

const routes: Routes = [
{ path: 'admin', loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule) },
{ path: '', redirectTo: '/admin', pathMatch: 'full' },
];

when i navingate to /app1/admin, I am getting below error.

ERROR Error: Uncaught (in promise): ChunkLoadError: Loading chunk admin-admin-module failed.
(error: http://localhost:4900/admin-admin-module.js)
ChunkLoadError: Loading chunk admin-admin-module failed.
(error: http://localhost:4900/admin-admin-module.js).

my root application is running on port 4900 and app1 is running on port 4901.

what changes I need to make to load the correct module in child application when navigating.

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