pwa-module
pwa-module copied to clipboard
[h3] [unhandled] next is not a function (Nuxt/Bridge - Nitro 6.0.0)
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
- Operating System:
Darwin - Node Version:
v16.15.0 - Nuxt Version:
2.15.8 - Nitro Version:
0.6.0 - Package Manager:
[email protected] - Builder:
webpack - User Config:
telemetry,env,server,nitro,loading,target,head,css,plugins,components,buildModules,modules,auth,oneSignal,fontawesome,i18n,axios,vWave,performance,build,buildDir,dir,webpack,serverHandlers,devServerHandlers,typescript,bridge - Runtime Modules:
@nuxtjs/[email protected],@nuxtjs/[email protected],@nuxtjs/[email protected],@nuxtjs/[email protected],@nuxtjs/[email protected],v-wave/nuxt - Build Modules:
(),@nuxtjs/[email protected],[email protected],@nuxtjs/[email protected],@nuxt/[email protected]
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 any word on getting this merged in to fix this for bridge users?
Same issue here.
pls.
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.
This package hasn't been updated in over 2 years now. I have a feeling we won't be getting any response. 😭
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.
Same error here with nuxt-edge, @nuxt/bridge and @nuxtjs/pwa and static as deployment target.
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
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! 👍