Closed xoneill closed 1 year ago
Hi, thanks for your feedback, I will look at it
Yes, nice research @xoneill
Here the library is looking for the host remote entry from the current path and not from the host origin I can't modify the code of this external library but I can tag the creator 😄 @manfredsteyer can you please look at this issue? thanks 🙏
Here the library is looking for the host remote entry from the current path and not from the host origin
Yeah, there are several places in that function that use './'
:
I can't modify the code of this external library but I can tag the creator 😄
Sorry about that. I just couldn't find @softarc/native-federation
on github
Thank you guys for your assistance
here you can find the code https://github.com/angular-architects/module-federation-plugin/tree/main/libs/native-federation
In my Svelte Native Federation solution I am using svelte-pathfinder router which is configured to work in non-hashbang mode:
http://localhost:3000/pageA/featureA/
where/pageA/featureA/
- client side routing segmentsEverything is working fine if to open the app at
http://localhost:3000
. But if you try to refresh the browser while being on the feature screen, you will get an error:I looked at the code of the
@softarc/native-federation-runtime
package. Ininit-federation
functionprocessHostInfo
contains relative paths'./'
which cause this problem. Is it possible to replace it with root-relative paths/
or maybe make it configurable, so I can set it that way? It would solve my problemThanks