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

Dts Plugin - IPV6 machines cannot download zip file #3382

Open
5 tasks done
RussellCanfield opened this issue Dec 19, 2024 · 1 comment
Open
5 tasks done

Dts Plugin - IPV6 machines cannot download zip file #3382

RussellCanfield opened this issue Dec 19, 2024 · 1 comment
Assignees

Comments

@RussellCanfield
Copy link
Contributor

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

System:
    OS: macOS 15.1.1
    CPU: (16) arm64 Apple M4 Max
    Memory: 3.58 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.10.0 - ~/.nvm/versions/node/v22.10.0/bin/node
    npm: 10.9.0 - ~/.nvm/versions/node/v22.10.0/bin/npm
    pnpm: 9.15.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 131.0.6778.205
    Safari: 18.1.1

Validations

@ScriptedAlchemy
Copy link
Member

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

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

3 participants