slack-bolt-extensions icon indicating copy to clipboard operation
slack-bolt-extensions copied to clipboard

Types not up to date with nextjs 15

Open leo-paz opened this issue 1 year ago • 3 comments

Hi,

When trying to use this with nextjs 15 types using the app router, there is no way to convert NextRequest in something like a function POST(req: NextRequest, res: NextResponse) to an IncomingMessage.

leo-paz avatar Dec 23 '24 05:12 leo-paz

Thanks for taking the time to report this issue. Probably, adding a kind of converter would be necessary to resolve it but I don't have the bandwidth for it right now. If anyone is interested in this enhancement, I am happy to merge the changes and release new versions including them.

seratch avatar Dec 23 '24 06:12 seratch

If you're looking for a solution that is already available right now, I'd recommend using this library: https://github.com/seratch/slack-edge

seratch avatar Dec 23 '24 06:12 seratch

@seratch wow the slack edge solution looks great. I think this will work for us. I've been digging into this more the last day or two and surprised I haven't ran into it.

thank you!

leo-paz avatar Dec 23 '24 07:12 leo-paz