Skip to content
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

Miniflare Error on DO Webpack CommonJS template #44

Closed
TimTinkers opened this issue Sep 13, 2021 · 2 comments
Closed

Miniflare Error on DO Webpack CommonJS template #44

TimTinkers opened this issue Sep 13, 2021 · 2 comments
Labels
bug Something isn't working fixed-in-next Fixed in next release

Comments

@TimTinkers
Copy link

When setting up this template, Miniflare throws the following error
Miniflare Error
which ultimately results in a runtime error of

[mf:err] GET /process: FetchError: No fetch handler responded and unable to proxy request to upstream: no upstream specified. Have you added a fetch event listener that responds with a Response?
    at EventTarget.[dispatchFetch] (C:\Users\tim\AppData\Local\Volta\tools\image\packages\miniflare\node_modules\miniflare\src\modules\events.ts:224:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
GET /process 500 Internal Server Error (87.10ms)
@mrbbot
Copy link
Contributor

mrbbot commented Sep 13, 2021

Hey! 👋 Thanks for raising this. I'm pretty sure this is due to how CommonJS modules are (mis)handled at the moment. The major version will include a proper CommonJS loader which should solve this issue. 👍

@mrbbot mrbbot added the bug Something isn't working label Sep 27, 2021
@mrbbot mrbbot added the fixed-in-next Fixed in next release label Oct 19, 2021
@mrbbot
Copy link
Contributor

mrbbot commented Oct 27, 2021

Hey! 👋 The first pre-release of Miniflare 2 has just been released, including a proper CommonJS loader which should solve this issue. You can find the full changelog here and install it with npm i miniflare@next -D. Please let me know if you have any other issues, and feel free to ask questions in the #miniflare channel of the Cloudflare Workers Discord server.

@mrbbot mrbbot closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-in-next Fixed in next release
Projects
None yet
Development

No branches or pull requests

2 participants