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

🐛 BUG: write EOF error when building SvelteKit framework #7276

Open
derpygamer2142 opened this issue Nov 18, 2024 · 0 comments
Open

🐛 BUG: write EOF error when building SvelteKit framework #7276

derpygamer2142 opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something that isn't working

Comments

@derpygamer2142
Copy link

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

3.87.0

What version of Node are you using?

v23.2.0

What operating system and version are you using?

Windows 10 Home 22H2

Describe the Bug

Observed behavior

As in #6262 when running npm run build, npm run deploy, or creating the project by folllowing https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site/, I get the following error:

✓ built in 637ms

node:internal/event_target:1101
  process.nextTick(() => { throw err; });
                           ^
Error: write EOF
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
    at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
  errno: -4095,
  code: 'EOF',
  syscall: 'write'
}

Node.js v23.2.0

Expected behavior

The build process completes without error and deploys to Cloudflare pages.

Steps to reproduce

  • Run npm create cloudflare@latest -- my-svelte-app --framework=svelte, as per https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site/
  • Choose "Framework Starter"
  • Choose "SvelteKit"
  • Choose "SvelteKit minimal"
  • Choose "Yes, using Javascript with JSDoc comments"
  • Skip by pressing enter
  • Choose "npm"
  • When asked if you want to deploy your application, choose "yes"
  • After seeing "built in Xms" you will see the error mentioned above.
  • Run npm run build and you will see the same thing

Please provide a link to a minimal reproduction

https://github.com/derpygamer2142/cf-sveltekit-issue

Please provide any relevant error logs

vite v5.4.11 building SSR bundle for production...
✓ 144 modules transformed.
vite v5.4.11 building for production...
✓ 121 modules transformed.
.svelte-kit/output/client/_app/version.json 0.03 kB │ gzip: 0.05 kB
.svelte-kit/output/client/.vite/manifest.json 2.79 kB │ gzip: 0.51 kB
.svelte-kit/output/client/_app/immutable/chunks/legacy.B-18Zlpp.js 0.04 kB │ gzip: 0.06 kB
.svelte-kit/output/client/_app/immutable/entry/start.B9XoXnZq.js 0.07 kB │ gzip: 0.08 kB
.svelte-kit/output/client/_app/immutable/nodes/2.CVt2PFG9.js 0.35 kB │ gzip: 0.26 kB
.svelte-kit/output/client/_app/immutable/nodes/1.D-JhoaKI.js 1.22 kB │ gzip: 0.69 kB
.svelte-kit/output/client/_app/immutable/chunks/store.D1zqTtIt.js 3.09 kB │ gzip: 1.61 kB
.svelte-kit/output/client/_app/immutable/entry/app.CgCklakA.js 9.40 kB │ gzip: 4.28 kB
.svelte-kit/output/client/_app/immutable/chunks/runtime.S-55nsRv.js 11.61 kB │ gzip: 4.74 kB
.svelte-kit/output/client/_app/immutable/chunks/entry.CDsI-afB.js 28.70 kB │ gzip: 11.33 kB
✓ built in 584ms

node:internal/event_target:1101
process.nextTick(() => { throw err; });
^
Error: write EOF
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -4095,
code: 'EOF',
syscall: 'write'
}

Node.js v23.2.0
╰ ERROR Error

@derpygamer2142 derpygamer2142 added the bug Something that isn't working label Nov 18, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant