cloudflare / workers-sdk

โ›…๏ธ Home to Wrangler, the CLI for Cloudflare Workersยฎ
https://developers.cloudflare.com/workers/
Apache License 2.0
2.73k stars 723 forks source link

๐Ÿ› BUG: write EOF error when building SvelteKit framework #7276

Closed derpygamer2142 closed 4 days ago

derpygamer2142 commented 4 days ago

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

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

emily-shen commented 4 days ago

Hey can you following this comment and see if it helps https://github.com/cloudflare/workers-sdk/issues/3698#issuecomment-2089044668?

derpygamer2142 commented 4 days ago

That fixed it, thank you!