wrangler.toml has a vscode extension for some sorta type checking, is there one for the wrangler.jso
wrangler.toml has a vscode extension for some sorta type checking, is there one for the wrangler.json?
node_modules/wrangler/config-schema.json in the $schema field, and it should start workingsse to send some data to a page and im getting the hanging Promise was cancelled.. errorEventSource on client end, so that i can ~hopefully broadcast the data when i get a req to a different endpoint
_worker.js file/directory in the output directory, but with Workers, I think you need to be explicit"No such module \'pages/api/utils/buffer'" when I try to use a .arrayBuffer() from an image fetch request.arrayBuffer() shouldn't require nodejs_compat...node:crypto module
main partworkers_dev and don't add any routes, then the Worker should not be accessible via anything but service bindingswrangler.json doesn't have a Route/workers_dev, it won't have a URL, even if you are using Hono"18:50:33 [ERROR] Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/\n at $store.off (chunks/Button_DdLih6DG.mjs:3475:7)\n at chunks/Button_DdLih6DG.mjs:3388:34\n at Object.get (chunks/Button_DdLih6DG.mjs:3370:11)\n at chunks/useAuth_DoHMfpz7.mjs:191:13"
case '/sse':
const { readable, writable } = new TransformStream();
const writer = writable.getWriter();
broker.addClient(writer);
console.log("here");
request.signal.onabort = () => {
broker.removeClient(writer);
writer.close();
};
return new Response(readable, {
headers: new Headers({
'Content-Type': 'text/event-stream; charset=utf-8',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'X-Accel-Buffering': 'no'
})
});"18:50:33 [ERROR] Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/\n at $store.off (chunks/Button_DdLih6DG.mjs:3475:7)\n at chunks/Button_DdLih6DG.mjs:3388:34\n at Object.get (chunks/Button_DdLih6DG.mjs:3370:11)\n at chunks/useAuth_DoHMfpz7.mjs:191:13"