-
-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example with Miniflare/Wrangler2 #54
Comments
Actually, maybe not necessarily Miniflare but the new Wrangler2 |
Hi @justinnoel I've tried a Durable Object example with Miniflare 2.2.0. It worked correctly. |
Thanks for the response. That's the sample I was using. On previous versions of Hono with Miniflare 2.2.0, I was getting the error above. Now, with Hono 0.0.16, it's all resolved 🎉! So, something in #55 probably fixed this issue. Thanks again! |
Got the same |
Hi @MatteoGauthier ! Could you provide some snippets to reproduce the problem? I've tried to run the simple application using KV with v3.1.0. It works well. import { Hono } from 'hono'
type Bindings = {
FOO: KVNamespace
}
const app = new Hono<{ Bindings: Bindings }>()
app.get('/', async (c) => {
await c.env.FOO.put('name', 'Hono')
const val = await c.env.FOO.get('name')
return c.text(`Hello ${val}`)
})
export default app |
Oh sorry, here is a reproduction repository for the issue : https://github.com/MatteoGauthier/hono-fetch-issue-kv |
Thanks! I'll try it. |
I've tried your repo, but it works fine. I did:
You get an error when you start up Wrangler with the |
@yusukebe Yes exactly with |
I see. But I can't seem to reproduce the issue. Hmm. |
I'd love to see an official example with Miniflare with live reloading for development mode.
I've put together my own project that was working with Miniflare 2.0.0 and Hono 0.0.13. However, if I update Miniflare to 2.2.0, it no longer works. Miniflare shows this on the durable object example:
The text was updated successfully, but these errors were encountered: