mohammedzamakhan / ngx-loadable

⏳ Simple Lazy Loading for Non Routable Angular Modules
https://mohammedzamakhan.github.io/ngx-loadable/
MIT License
164 stars 22 forks source link

Loadable config missing "fileMappings" in version 2.x.x #35

Open chulerias opened 4 years ago

chulerias commented 4 years ago

Hi there! I'm trying to update ngx-loadable from version 1.1.1 to version 2.1.1 but I'm getting some errors regarding forRoot configuration. With version 1.1.1 I used "fileMappings" and everything worked fine for me...

LoadableModule.forRoot({ fileMappings: { footer: 'src/app/features/layout-root/footer/footer.module#FooterModule', (...) } })

...but with version 2.x.x it is not possible to use "fileMappings" anymore. Unfortunately, I cannot find any documentation to understand how to replace it. Can you help me, please?

Here is the angular version I'm using at the moment:

Angular CLI: 8.3.23 Node: 10.16.0 OS: win32 x64 Angular: 8.2.14 ... animations, common, compiler, compiler-cli, core, forms ... language-service, platform-browser, platform-browser-dynamic ... platform-server, router, service-worker

Package Version

@angular-devkit/architect 0.803.23 @angular-devkit/build-angular 0.803.23 @angular-devkit/build-optimizer 0.803.23 @angular-devkit/build-webpack 0.803.23 @angular-devkit/core 8.3.23 @angular-devkit/schematics 8.3.23 @angular/cdk 8.2.3 @angular/cli 8.3.23 @angular/material 8.2.3 @angular/pwa 0.8.9 @ngtools/webpack 8.3.23 @schematics/angular 0.8.9 @schematics/update 0.803.23 rxjs 6.5.4 typescript 3.5.3 webpack 4.39.2

Thanks, Carlos Escribano

mohammedzamakhan commented 4 years ago

That was as per design

chulerias commented 4 years ago

Hi Mohammed, thanks for your answer. Is there a way to replace the use of "fileMappings" with some other configuration? Can you give me an example of that, please?

Thanks a lot, Carlos Escribano