-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Which Cloudflare product(s) does this pertain to?
C3 (npm create cloudflare), Pages, Wrangler
What version(s) of the tool(s) are you using?
3.88.0 [Wrangler]
What version of Node are you using?
22.9.0
What operating system and version are you using?
Windows 11, Linux Ubuntu WSL
Describe the Bug
Observed Behavior
After configuring and starting a connection from an ES module worker to a page, the page, which was run with npx wrangler pages dev, never connects to the worker, which is also running in another terminal with npx wrangler dev.
Expected Behavior
It is expected that after running the dev command for the page project and then running the dev command for the worker project, the page project should be able to connect to the worker running locally, as described in the documentation.
Steps to Reproduce
This scenario can be easily tested by creating each of the projects with the command npm create cloudflare@latest.
Setup Worker Project
- Run
npm create cloudflare@latest -- worker-a - Select the first option Hello World example
- Choose the default options for the remaining choices
- Run
npm run dev
Setup Page Project
- Run
npm create cloudflare@latest -- pages-nuxt - Select the second option Framework Starter
- Choose the NUXT framework (I also tested using another framework like NEXT, but encountered the same issue)
- Choose the default options for the remaining choices
- Run
npx wrangler pages dev --service WORKER_A=worker-a
After running both projects in development mode, regardless of the order in which they were started, the output in the pages project will be:
- Services:
- WORKER_A: worker-a [not connected]Indicating that the page project did not connect to the worker-a.
I reviewed the documentation, repeated this process on Linux, tested switching from NUXT to NEXT, and had no success. Therefore, I am reporting this issue as a bug.
Note
This issue might be related to another request
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response