Skip to content
Discussion options

You must be logged in to vote

Confirmed bug in Vite 8.0.6, fixed in 8.0.7.

PR #22151 added a dns.getDefaultResultOrder() call, but dns is aliased to node:dns/promises. Node.js exposes getDefaultResultOrder on both the top-level module and the promises namespace. Bun only implements it on the top-level node:dns, so the call throws.

The fix in PR #22185 imports getDefaultResultOrder directly from node:dns instead of going through promises. This runs during server options resolution, which Vite invokes even during vite build, so it hits the build path too.

npm install vite@8.0.7 or pin 8.0.5 if you can't upgrade (the bug was only introduced in 8.0.6).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MalteMagnussen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants