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:
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
You're not exporting your class from your entrypoint
how do i do it?
export { Counter } from './counter'
in index.ts
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?
@kian Thanks for this! Solved my issue.