Next.js 15.0.0 "FetchEventLike" type error
Hi, I’m trying to use Hono with Next.js 15 App Router and Auth.js.
Everything works fine when I run
pnpm dev
, but when I run pnpm build
, I encounter a type error (screenshot attached).
package.json version:
I’ve been following one of CodewithAntonio’s YouTube tutorials, but I’m stuck at this point. Any clues or advice would be greatly appreciated!1 Reply
I guess yusukebe will fix this error! https://github.com/honojs/hono/issues/3548
GitHub
Next.js 15: `Type "FetchEventLike" is not a valid type for the func...
What version of Hono are you using? 4.6.5 What runtime/platform is your app running on? Node/Vercel What steps can reproduce the bug? ☝️ The above error occurs when upgrading to Next.js 15. This, o...