Skip to content
This repository has been 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

Open
tibistibi opened this issue Feb 21, 2019 · 0 comments

Comments

@tibistibi
Copy link

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'
        },
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant