You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this out after generating a clean wrangler project. After wrangler generate foo, I use miniflare index.js and navigating to the url in the browser I see:
The first argument must be one of type string or Buffer. Received type object
The text was updated successfully, but these errors were encountered:
miniflare index.js
[mf:inf] Worker reloaded! (295B)
[mf:inf] Listening on :8787
[mf:inf] - http://127.0.0.1:8787
[mf:inf] - http://192.168.0.8:8787
[mf:err] GET /: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string or Buffer. Received type object
at write_ (_http_outgoing.js:618:11)
at ServerResponse.write (_http_outgoing.js:586:15)
at Miniflare._Miniflare_httpRequestListener (/Users/spence/.nvm/versions/node/v12.14.0/lib/node_modules/miniflare/src/index.ts:426:18)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
GET / 200 OK (95.16ms)
Ah ok. I just generated a new project from the template I'm guessing you're using and it's working for me. I think this might be the same issue as #35 though, since you're using Node 12.14. Would you be able to try with Node >= 12.19?
Hi, thanks for making this.
I tried this out after generating a clean wrangler project. After
wrangler generate foo
, I useminiflare index.js
and navigating to the url in the browser I see:The text was updated successfully, but these errors were encountered: