You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my mac which is setup to prefer ipv6, federated types will not download due to the axios agent's "family: 4" configuration. The loopback ip address 127.0.0.1 does not resolve to localhost. Is there a better way than just assuming ipv4 is the answer and perhaps work like the dev server -> host option for ipv6 and fallback to ipv4 ?
This was tricky to track down, and I think in general the DTS Plugin could use a lot more information logs events where it has many early returns. Especially in situations where the HTTP Call to get the type data fails.
in node@17 localhost will resolve to ipv6 by default, but for modernjs/rspack, it use ipv4 by default , so it can not fetch the types file.
Will see if we can add an option to allow user to specify
Describe the bug
On my mac which is setup to prefer ipv6, federated types will not download due to the axios agent's "family: 4" configuration. The loopback ip address 127.0.0.1 does not resolve to localhost. Is there a better way than just assuming ipv4 is the answer and perhaps work like the dev server -> host option for ipv6 and fallback to ipv4 ?
This was tricky to track down, and I think in general the DTS Plugin could use a lot more information logs events where it has many early returns. Especially in situations where the HTTP Call to get the type data fails.
Reproduction
https://github.com/RussellCanfield/zephyr-demo
Used Package Manager
pnpm
System Info
Validations
The text was updated successfully, but these errors were encountered: