Wrangler dev server failing to start: ERROR write EOF
I have an Astro + SolidJS project with worker code in
app/api/ and static files in app/src/
When i run bun run dev I get an error and server does not start:21 Replies
My configuration:
package.json
wrangler.jsonc
astro.config.mjs
When i run
bun run dev I get an error ✘ [ERROR] write EOF and server does not startJust running
bun run build on its own works:
Running
bun run deploy also works:If you use pnpm/yarn/npm, does the issue still persist?
(including/mainly dependency management)
=
I’ll check
Is it about lock files or
node_modules? or about runnning with npx instead of bunx or something else?node modules, not lock files
although the lock file is what determines what goes inside node modules
alright, i'll try
btw is there a way to specify on what port should the worker run?
--port <number>bunx wrangler dev --port <number>, right?yup
for reference, you can check all the flags with
bunx wrangler dev --helpOkay, it looks like the issue exists without any frameworks
And here are the logs:
I'll try with npm now
Alright, @Razboy20 just tested with a new project using npm and it has the same issue:
Should I open a GitHub issue or not?
I've made a GtiHub issue https://github.com/cloudflare/workerd/issues/4391
Maybe i should've made it on
cloudflare/workers-sdk instead, but I'm not suredid you manage to solve this error please. 🙏
It does seem to be working for me now, but I don’t think I have changed anything
So either they’ve fixed it or something else changed, so I don’t know
Good for you mate, cause I’ve been stuck here for ages now…. It’s so annoying…
@Roman I have found the answer to this, run this script in your terminal—-> install_tools.bat