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
funcmain() {
http.HandleFunc("/", func(w http.ResponseWriter, req*http.Request) {
// doing nothing here causes weird error
})
workers.Serve(nil) // use http.DefaultServeMux
}
$ curl localhost:8787
TypeError: Cannot read properties of undefined (reading 'exports')
at syscall/js.valueNew (file:///home/syumai/go/src/github.com/syumai/workers-playground/syumai-workers-repro-issue-100/build/wasm_exec.js:395:24)
at [object Object]
at [object Object]
at [object Object]
at [object Object]
at [object Object]
at globalThis.Go._resume (file:///home/syumai/go/src/github.com/syumai/workers-playground/syumai-workers-repro-issue-100/build/wasm_exec.js:553:23)
at Object.handleRequest (file:///home/syumai/go/src/github.com/syumai/workers-playground/syumai-workers-repro-issue-100/build/wasm_exec.js:564:8)
at Object.fetch (file:///home/syumai/go/src/github.com/syumai/workers-playground/syumai-workers-repro-issue-100/build/shim.mjs:51:18)
at async jsonError (file:///home/syumai/.nvm/versions/node/v20.12.2/lib/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
How to reproduce
Run How to reproduce steps in the repository below.
How to reproduce
Run
How to reproduce
steps in the repository below.https://github.com/syumai/workers-playground/tree/main/syumai-workers-repro-issue-100
The text was updated successfully, but these errors were encountered: