You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the v1.42.2 I see latest compat update for node http2 is released. So I just try to run hono + @hono/node-server
import{serve}from"npm:@hono/node-server"import{Hono}from"npm:hono"constapp=newHono()app.get("/",(c)=>c.text("Hello from server"))serve({fetch: app.fetch,port: 3000},()=>{console.log("Running on 3000")})
and it seems Http2ServerRequest is not available as named export.
here is the error message
error: Uncaught SyntaxError: The requested module 'http2' does not provide an export named 'Http2ServerRequest'
at <anonymous> (file:///C:/Users/OnielN14/AppData/Local/deno/npm/registry.npmjs.org/@hono/node-server/1.9.1/dist/index.mjs:5:10)
am I missing something regarding node compatiblity?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the v1.42.2 I see latest compat update for node http2 is released. So I just try to run hono + @hono/node-server
and it seems
Http2ServerRequest
is not available as named export.here is the error message
am I missing something regarding node compatiblity?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions