sitemap-module icon indicating copy to clipboard operation
sitemap-module copied to clipboard

[h3] [unhandled] next is not a function (Nuxt/Bridge - Nitro 6.0.0)

Open NtchPlayer opened this issue 3 years ago • 5 comments

Hi, As @danielroe ask me, I open an issue for error [h3] [unhandled] next is not a function (https://github.com/nuxt/bridge/issues/592).

Environment

Reproduction https://codesandbox.io/s/nuxt-bridge-sitemap-module-bug-report-h3-6mhi80

-> go to sitemap at this url: https://6mhi80.sse.codesandbox.io/sitemap.xml to see the error 500.

Describe the bug

With this version of nuxt/bridge: 3.0.0-27778050.a725a7a, sitemap-module cause this error: [h3] [unhandled] next is not a function when you go the sitemap.xml on your browser.

This warning is also display by the console when the app is compile: WARN [h3] Implicit event handler conversion is deprecated. Use eventHandler() or fromNodeMiddleware() to define event handlers.

This error probably come from nitro 6.0.0, with the last update to unjs/h3.

NtchPlayer avatar Oct 25 '22 12:10 NtchPlayer

I'm having the same issue, any quick fix for this?

lmssieh avatar Nov 20 '22 22:11 lmssieh

Nop, I jus't find this repo, a version of this plugin for Nuxt 3 where this bug is corrected: sitemap-module-nuxt-3

NtchPlayer avatar Nov 20 '22 22:11 NtchPlayer

Does anyone here have a solution for nuxt bridge? I can't transfer to nuxt 3 yet and I want to add a sitemap.xml generated by code.

ThomasBerne avatar Jan 09 '23 13:01 ThomasBerne

Running into this problem as well. Would be great if someone has a workaround!

robinscholz avatar Feb 07 '23 10:02 robinscholz

Same problem :'( although it seems to be with Nitro 1.0.0? I simply followed this guide to migrate to nuxt-bridge https://github.com/nuxt/bridge

image

katerlouis avatar Feb 17 '23 09:02 katerlouis