nuxt-community / pwa-module

Zero config PWA solution for Nuxt.js
https://pwa.nuxtjs.org
MIT License
1.24k stars 171 forks source link

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

Open NtchPlayer opened 1 year ago

NtchPlayer commented 1 year ago

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-bug-report-h3-rf0rw5

Describe the bug

With this version of nuxt/bridge: 3.0.0-27778050.a725a7a, pwa-module cause this error: [h3] [unhandled] next is not a function when you load your app in a 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.

emretepedev commented 1 year ago

Same issue here.

thirdman commented 1 year ago

pls.

adamndev commented 1 year ago

Running into this when installing Nuxt Bridge into a Nuxt 2 application. Tried to create a new Nuxt 2 static site and install Nuxt Bridge into that, but I also ran into the same thing.

Is there a previous working version to try out? Would really like to get this existing application running Bridge so we can begin a migration to Nuxt 3, but seems that PWA/static is our issue. Thanks.

MarcusOhman91 commented 1 year ago

Running into this when installing Nuxt Bridge into a Nuxt 2 application. Tried to create a new Nuxt 2 static site and install Nuxt Bridge into that, but I also ran into the same thing.

Is there a previous working version to try out? Would really like to get this existing application running Bridge so we can begin a migration to Nuxt 3, but seems that PWA/static is our issue. Thanks.

I'm in the same situation, it isnt looking very promising though. I think we all have to get an alternate / custom solution to replace this in Nuxt bridge/3.

dubst3pp4 commented 1 year ago

Same error here with nuxt-edge, @nuxt/bridge and @nuxtjs/pwa and static as deployment target.

thirdman commented 1 year ago

Hey everyone! I am not the maintainer of the original package but it looks like this isn't going to be updated. I decided to fork and create a new npm module off the original code.

THANK YOU! 👍