
javascript native RPC but the worker fails immediately with the warning:
compatibility_date?default it appears to work.wrangler detects the type of the Worker based on whether or not you export default. If it isn't export default, then it assumes you are using Service Worker syntaxclass have a fetch() method?wrangler.toml include a route/workers.dev?workers_dev = falseworkers_dev by default, unless you add a routefetch() method, even if it doesn't actually do anythingasync fetch(){} to class and it deployed.javascript native RPCThe entrypoint src/worker.js has exports like an ES Module, but hasn't defined a default export like a module worker normally would.Uncaught Error: Dynamic require of "cloudflare:workers" is not supported\ncompatibility_datecompatibility_date = "2024-05-07"export default class Mailer extends WorkerEntrypoint {...export class Mailer extends WorkerEntrypoint {...export defaultexport defaultThe uploaded script has no registered event handlers. [code: 10068]classname = "worker-t"
main = "src/worker.js"
compatibility_date = "2024-05-07"
node_compat = trueworkers_devasync fetch(){}