pwa-module icon indicating copy to clipboard operation
pwa-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 • 9 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-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.

NtchPlayer avatar Oct 25 '22 12:10 NtchPlayer

@NtchPlayer any word on getting this merged in to fix this for bridge users?

SomethingNew71 avatar Dec 17 '22 02:12 SomethingNew71

Same issue here.

emretepedev avatar Dec 18 '22 00:12 emretepedev

pls.

thirdman avatar Jan 07 '23 11:01 thirdman

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.

adamndev avatar Jan 08 '23 15:01 adamndev

This package hasn't been updated in over 2 years now. I have a feeling we won't be getting any response. 😭

SomethingNew71 avatar Jan 08 '23 21:01 SomethingNew71

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.

MarcusOhman91 avatar Jan 10 '23 06:01 MarcusOhman91

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

dubst3pp4 avatar Jan 12 '23 12:01 dubst3pp4

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. I haven't got it fully working with nuxt bridge but I think I am close. If anyone in this thread knows what needs to be done to get it fixed please feel free to open a PR and I will get it built and published to NPM so people can continue using PWA functionality with their bridge apps.

  • https://github.com/somethingnew71/pwa-nuxt-bridge
  • https://www.npmjs.com/package/pwa-nuxt-bridge

SomethingNew71 avatar Mar 15 '23 17:03 SomethingNew71

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! 👍

thirdman avatar Apr 01 '23 02:04 thirdman