Cloudflare DevelopersCD
Cloudflare Developers4mo ago
1 reply
Sam

"npm run dev " fails

Try to make a project using cloudflare with postgres as db.

import { Hono } from 'hono'
import { sign, verify } from 'hono/jwt'
import { getPrisma } from '../prismaFunction'

// Create the main Hono app
const app = new Hono()

app.get('/', (c) => {
  // Now you can use it wherever you want
  try {
    return c.text("hello world")
  } catch (error) {
    console.log(error)
  }
})


this boiler plate code is showing "An error has occurred"
image.png
Was this page helpful?