-
Notifications
You must be signed in to change notification settings - Fork 691
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: Local server not starting #2334
Labels
bug
Something that isn't working
Comments
can confirm, --local mode doesn't start anymore |
Same here with |
➜ test-worker rm -rf node_modules
➜ test-worker rm -rf package-lock.json
➜ test-worker rm -rf package.json
➜ test-worker npm i wrangler
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
added 85 packages, and audited 220 packages in 15s
43 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
➜ test-worker npx wrangler dev --local
⛅️ wrangler 2.6.0
-------------------
Want to try out the next version of local mode using the open-source Workers runtime?
Switch out --local for --experimental-local and let us know what you think at https://discord.gg/cloudflaredev !
Using vars defined in .dev.vars
Your worker has access to the following bindings: ...
⎔ Starting a local server...
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Debugger listening on ws://127.0.0.1:60825/74021e4f-1bba-4673-87e3-d2eff97c123c
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Waiting for the debugger to disconnect...
⎔ Shutting down local server.
➜ test-worker npm i @miniflare/tre@3.0.0-next.8
added 54 packages, and audited 274 packages in 36s
55 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
➜ test-worker npx wrangler dev --local
⛅️ wrangler 2.6.0
-------------------
Want to try out the next version of local mode using the open-source Workers runtime?
Switch out --local for --experimental-local and let us know what you think at https://discord.gg/cloudflaredev !
Using vars defined in .dev.vars
Your worker has access to the following bindings: ...
⎔ Starting a local server...
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Debugger listening on ws://127.0.0.1:60842/dde6f76a-b2a5-4a9a-b314-0b429770e194
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
[mf:inf] Worker reloaded! (1.20KiB)
[mf:inf] Listening on 0.0.0.0:8787
[mf:inf] - http://127.0.0.1:8787
[mf:inf] - http://192.168.1.87:8787
[mf:inf] - http://192.168.192.165:8787
[mf:inf] Updated `Request.cf` object cache! |
Could you give this version of wrangler a go to see if it fixes the issue?
|
@penalosa Thank you, but still the same for me: |
Same issue here. ➜ test-worker npx wrangler dev --local
⛅️ wrangler 2.6.0
-------------------
Want to try out the next version of local mode using the open-source Workers runtime?
Switch out --local for --experimental-local and let us know what you think at https://discord.gg/cloudflaredev !
Using vars defined in .dev.vars
Your worker has access to the following bindings: ...
⎔ Starting a local server...
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Debugger listening on ws://127.0.0.1:65026/85ff97b1-864f-409c-92e1-090c9dd6c6fc
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Waiting for the debugger to disconnect...
⎔ Shutting down local server.
➜ test-worker npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/prs/2338/npm-package-wrangler-2338
npm WARN idealTree Removing dependencies.wrangler in favor of devDependencies.wrangler
changed 1 package, and audited 103 packages in 928ms
11 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
➜ test-worker npx wrangler dev --local
⛅️ wrangler 0.0.0-27c16677 (update available 0.0.0-271aece0)
-----------------------------------------------------------------------
Want to try out the next version of local mode using the open-source Workers runtime?
Switch out --local for --experimental-local and let us know what you think at https://discord.gg/cloudflaredev !
Using vars defined in .dev.vars
Your worker has access to the following bindings: ...
⎔ Starting a local server...
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Debugger listening on ws://127.0.0.1:65068/12b065d3-4271-4a40-86c0-686a1fbedd3b
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Waiting for the debugger to disconnect...
⎔ Shutting down local server.
➜ test-worker npm i --save-dev @miniflare/tre@3.0.0-next.8
added 60 packages, and audited 163 packages in 40s
23 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
➜ test-worker npx wrangler dev --local
⛅️ wrangler 0.0.0-27c16677 (update available 0.0.0-271aece0)
-----------------------------------------------------------------------
Want to try out the next version of local mode using the open-source Workers runtime?
Switch out --local for --experimental-local and let us know what you think at https://discord.gg/cloudflaredev !
Using vars defined in .dev.vars
Your worker has access to the following bindings: ...
⎔ Starting a local server...
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Debugger listening on ws://127.0.0.1:65163/e2144634-b733-4c37-9231-05bdb7c77d8b
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
[mf:inf] Worker reloaded! (1.20KiB)
[mf:inf] Listening on 0.0.0.0:8787
[mf:inf] - http://127.0.0.1:8787
[mf:inf] - http://192.168.1.87:8787
[mf:inf] - http://192.168.192.165:8787
[mf:inf] Updated `Request.cf` object cache! |
There's a fix for this in |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of
Wrangler
are you using?2.6.0
What operating system are you using?
Mac
Describe the Bug
I just upgraded from 2.5.0 to 2.6.0 and it seems that local dev port is not working anymore when running
yarn wrangler dev --local
.Maybe because there was a debugger issue in 2.5.0 and lower versions (address already in use) that seems to be fixed in 2.6.0. This issue being fixed, when I run
yarn wrangler dev --local
it blocks here without starting the web server:The text was updated successfully, but these errors were encountered: