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

Template fails to run after setup #7

Closed
austincrim-pfg opened this issue Apr 8, 2021 · 1 comment · Fixed by #8
Closed

Template fails to run after setup #7

austincrim-pfg opened this issue Apr 8, 2021 · 1 comment · Fixed by #8

Comments

@austincrim-pfg
Copy link

austincrim-pfg commented Apr 8, 2021

After running wrangler generate with this template and running npm run dev, the worker fails with a 500 status code.
Here's the error output:

"A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise\'s request context have already finished."
[2021-04-08 08:16:22] GET cloud-cobol.austin-crim.workers.dev/ HTTP/1.1 500 Internal Server Error
"Module.instantiateWasm callback failed with error: ReferenceError: wasm is not defined"

environment
macOS: 10.15.7
wrangler: 1.15.0
node: 14.16.0
npm: 6.14.11
docker: 20.10.5

@xtuc
Copy link
Member

xtuc commented Apr 13, 2021

This regression was likely introduced by cloudflare/wrangler-legacy#1730, where the wasm binding was renamed to WASM_MODULE, we will need to change it here

let instance = new WebAssembly.Instance(wasm, info)
. Would you mind sending a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants