๐ BUG: wrangler dev --local error with "Cannot find module '@miniflare/queues'"
See original GitHub issueWhat version of Wrangler
are you using?
2.0.29
What operating system are you using?
Linux Debian 11
Describe the Bug
Reproduce the bug
wrangler init my_project
cd my_project
wrangler dev --local
Environment and versions
- operating system:
Debian 11 (same error on WSL1 and virtual machine with Hyper-V)
- output of
wrangler -v
:2.0.29
- output of
node -v
:v18.8.0
- content of
wrangler.toml
: see below.
name = "my_project"
main = "src/index.js"
compatibility_date = "2022-09-08"
ฮป wrangler dev --local
โ
๏ธ wrangler 2.0.29
--------------------
Would you like to help improve Wrangler by sending usage metrics to Cloudflare? (y/n)
Your choice has been saved in the following file: ../.wrangler/config/metrics.json.
You can override the user level setting for a project in `wrangler.toml`:
- to disable sending metrics for a project: `send_metrics = false`
- to enable sending metrics for a project: `send_metrics = true`
โ Starting a local server...
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Starting inspector on 0.0.0.0:9229 failed: address already in use
node:internal/modules/cjs/loader:955
const err = new Error(message);
^
Error: Cannot find module '@miniflare/queues'
Require stack:
- /home/kiss/my_project/node_modules/miniflare/dist/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:955:15)
at Module._load (node:internal/modules/cjs/loader:803:27)
at Module.require (node:internal/modules/cjs/loader:1021:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/home/kiss/my_project/node_modules/miniflare/dist/src/index.js:45:32)
at Module._compile (node:internal/modules/cjs/loader:1119:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
at Module.load (node:internal/modules/cjs/loader:997:32)
at Module._load (node:internal/modules/cjs/loader:838:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:170:29) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/kiss/my_project/node_modules/miniflare/dist/src/index.js'
]
โ [ERROR] Miniflare process exited with code 1
Miniflare process exited with code 1
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Get started guide ยท Cloudflare Workers docs
After you have created your first Worker, run the wrangler dev command to start a local server for developing your Worker.
Read more >Wrangler | Noise
This enabled developers to see code completions in their IDEs for Workers ... it fails with Error: Cannot perform I/O on behalf of...
Read more >@cloudflare/wrangler | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >miniflare tutorial - Barbara Chiarelli
And a common development scripts set should look something like this: GitHub: Where the world ... 0: a local Cloudflare Workers simulator. com...
Read more >Using the CLI - Miniflare
It includes a local development mode powered by Miniflare. ... See the Wrangler Configuration reference below for more details,ย ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, the bump PRโs (https://github.com/cloudflare/wrangler2/pull/1795) been merged, just need to release now. ๐ This issue was introduced in Miniflare
2.8.0
and was addressed in2.8.1
.No, thereโs nothing else we need to do here. ๐ This issue should be fixed in
wrangler@2.1.0
.