Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Component not found on tomcat when having same mudule file name and lazy loading #443

Description

@tibistibi

I get a component not found when lazyloading it if the file name of the module is equal even if its in different path. so this:

in my employee/employee.module.ts i have:

         {
            path: 'employee/rating',
            loadChildren: './rating/rating.module#EmployeeRatingModule'
        },

in my client/client.module.ts i have:

         {
            path: 'client/rating',
            loadChildren: './rating/rating.module#ClientRatingModule'
        },

this will not work, only one of them will be found. On my local machine it is working but after packaging and deploy to tomcat env it does not work.

this will work:

in my employee/employee.module.ts i have:

         {
            path: 'employee/rating',
            loadChildren: './rating/emp.rating.module#EmployeeRatingModule'
        },

in my client/client.module.ts i have:

         {
            path: 'client/rating',
            loadChildren: './rating/cli.rating.module#ClientRatingModule'
        },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions