Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chulerias opened this issue Feb 4, 2020 · 2 comments
Open

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

chulerias opened this issue Feb 4, 2020 · 2 comments

Comments

@chulerias
Copy link

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
Copy link
Owner

That was as per design

@chulerias
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants