Troubleshooting Hono with Cloudflare Durable Objects Implementation Error

I'm currently working on integrating Hono with Cloudflare Durable Objects following this (url: https://github.com/honojs/examples/tree/main/durable-objects/src) example: Hono Example. However, I've run into a snag and need some help troubleshooting. My implementation, which is essentially a replica of the original example, can be found here: My Hono Implementation (url: https://github.com/bkyerv/hono-cloudfalre-do/tree/main/src ). I'm encountering the following error:
Error:
service core:user:worker-lawyer: Uncaught TypeError: Class extends value undefined is not a constructor or null
at index.js:1677:44 in maskDurableObjectDefinition
at index.js:1686:16
✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
Error:
service core:user:worker-lawyer: Uncaught TypeError: Class extends value undefined is not a constructor or null
at index.js:1677:44 in maskDurableObjectDefinition
at index.js:1686:16
✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
GitHub
hono-cloudfalre-do/src at main · bkyerv/hono-cloudfalre-do
Contribute to bkyerv/hono-cloudfalre-do development by creating an account on GitHub.
5 Replies
kian
kian14mo ago
You're not exporting your class from your entrypoint
bkyerv
bkyervOP14mo ago
how do i do it?
kian
kian14mo ago
export { Counter } from './counter' in index.ts
bkyerv
bkyervOP14mo ago
thank you, Kian! out of curiosity, how did you locate the issue? just reading through and looking for odd looking lines? or did you read the error message and come to some conclusions?
Cole
Cole13mo ago
@kian Thanks for this! Solved my issue.
Want results from more Discord servers?
Add your server