Skip to content

Use the ESM directory in the Nuxt config - #398

Merged
cpojer merged 1 commit into
mainfrom
codex/fix-nuxt-esm-config
Oct 8, 2026
Merged

cpojer merged 1 commit into
mainfrom
codex/fix-nuxt-esm-config

Conversation

@cpojer

@cpojer cpojer commented Oct 8, 2026

Copy link
Copy Markdown
Member

Nuxt 4.6's config loading on Windows reaches native ESM evaluation, where the playground's __dirname reference fails. The dev server then cannot serve the fixture and the Windows integration job times out.

Use import.meta.dirname for the schema alias in the playground and the Nuxt guide.

Validation: reproduced the failure with a native Node 24 ESM import, verified the corrected alias, and passed the Nuxt build, all four Nuxt integration tests, workspace typechecks, formatting, lint, and the full affected selection (13,739 tests passed; 30 skipped).

Failure: https://github.com/voidzero-dev/void/actions/runs/37852754232/job/113569571418

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-fix-nuxt-esm-config-void-cloud.voidzero-docs.workers.dev (commit 933a6f1)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://8235c76c-void-cloud.voidzero-docs.workers.dev 933a6f1 2026-10-08T22:37:53.173Z Visit the dashboard ↗

@cpojer
cpojer merged commit 933a6f1 into main Oct 8, 2026
21 of 22 checks passed
@cpojer
cpojer deleted the codex/fix-nuxt-esm-config branch October 8, 2026 22:39
@cpojer
cpojer deployed to cloudflare-e2e October 8, 2026 22:39 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
cloudflare-e2e — 933a6f13 Deployed Oct 8, 2026 by cpojer via live-e2e #2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant