Closed zainniazi closed 4 years ago
@wKoza Hi,
Could you please look at this ?
We have HttpClientModule
imported in NgxUploadModule
, which if imported in shared.module
or any child module it resets the HTTP_INTERCEPTORS
.
Hi @zainniazi, indeed, the library was not designed like that because it is very light. Using it in a lazy loaded module can lead to unwanted side effects at the configuration level. I will make some tests and if it's ok, I will release a V10 with this PR.
Hi @zainniazi ,
I've created a new branch of the ngx-uploader-app
application here . There is a shared module with NgxUploadModule
.
Are you in this configuration ? You are entirely free to change this code in order to show up your problematic.
Hi @wKoza, sure let me create an example of the issue and i'll also share a stackoverflow reference to have a better look into this problem.
@wKoza Please have a look here; it defines the problem we are having. https://stackoverflow.com/a/57007882/3477592
@zainniazi , I remember this problem but it seemed to me that it had been solved on the Angular side. If you test this branch, u can see there is no problem with the interceptors. What is your Angular version ? Can you write a repro with stackblitz / Github ?
@zainniazi , HttpClientModule has been removed in the v10.0.0.
Thanks @wKoza, Sorry i have been busy; i didn't send you a sample. Looking forward to collaborate again.
HttpClientModule added in
ngx-upload.module.ts
resets theHTTP_INTERCEPTORS
from app module if added in child/lazyloaded modules.