2t8d0s1p
2t8d0s1p
HHono
Created by Amodeus R. on 1/8/2025 in #help
Error cannot file module "@hono/bun" (TS2307)
Happy to help
7 replies
HHono
Created by Amodeus R. on 1/8/2025 in #help
Error cannot file module "@hono/bun" (TS2307)
from the docs
7 replies
HHono
Created by Amodeus R. on 1/8/2025 in #help
Error cannot file module "@hono/bun" (TS2307)
import { serveStatic } from 'hono/bun'

const app = new Hono()

app.use('/static/*', serveStatic({ root: './' }))
app.use('/favicon.ico', serveStatic({ path: './favicon.ico' }))
app.get('/', (c) => c.text('You can access: /static/hello.txt'))
app.get('*', serveStatic({ path: './static/fallback.txt' }))
import { serveStatic } from 'hono/bun'

const app = new Hono()

app.use('/static/*', serveStatic({ root: './' }))
app.use('/favicon.ico', serveStatic({ path: './favicon.ico' }))
app.get('/', (c) => c.text('You can access: /static/hello.txt'))
app.get('*', serveStatic({ path: './static/fallback.txt' }))
7 replies
HHono
Created by Amodeus R. on 1/8/2025 in #help
Error cannot file module "@hono/bun" (TS2307)
not @hono/bun
7 replies
HHono
Created by Amodeus R. on 1/8/2025 in #help
Error cannot file module "@hono/bun" (TS2307)
you have to use hono/bun
7 replies