-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[h3] [unhandled] next is not a function #592
Comments
Thank you! This needs to be resolved in the module that is injecting middleware of the wrong format. Would you raise an issue in those repos so we can track? 🙏 |
Hi again @danielroe ! Like it's write above, I open 2 issues for this error on each repos pwa-module: nuxt-community/pwa-module#532 I make a sandbox for each modules 👍 For sitemap-module, I found this repos sitemap-module-nuxt-3 made by d3xter-dev which is a fork of sitemap-module for Nuxt 3. With the RC-12, they meet the same problem with h3 and they fix-it. You see their issue here: d3xter-dev/sitemap-module-nuxt-3#8. I hope that can help you ! |
Thank you ❤️ |
Any updates with an alternative solution for this issue? I'm facing the same thing. |
@danielroe |
@danielroe hello, any updates here please? |
Have same warning with last bridge version
|
Having the same issue after enabling Nitro in a during my installation process of Nuxt Bridge on a Nuxt 2.17.2 project
|
Also seeing this. This migration from Nuxt 2 to Nuxt 3 has been a nightmare. Eager to migrate to Nextjs so I never have to go through something like this again. |
@bradley-varol Curious to know what's been troubling you in this upgrade 🤔 |
@wJoenn everything. We are upgrading a big project too and its a nightmare - migration from BootstrapVue, rewriting AuthModule, every plugin, middleware, router, synchronizing with master branch while the master branch is still updating daily. Migrating from nuxtjs/composiiton-api to last Nuxt3. NIGHTMARE |
@janvacek don't think this is the right place to talk about it in details but it sounds like you're approaching this upgrade not in the best manner if you'll allow me to say. Especially this sentence
What Bridge enables is to upgrade your app progressively. Instead you could be making very small PRs for everything single steps
This means your PRs can be merged very fast and you don't need to keep track of any changes in your There will be issues later because many packages made a complete rewrite back when migrating from Vue 2 to 3 and most of them don't provide cross compatible versions but when that is the case this is not Vue's or Nuxt's responsability (beside it happens with any other framework that some package devs make breaking changes that way) and even then there are still solutions. Feel free to DM me on Nuxt's Discord (@wJoenn) if you wanna talk about Nuxt upgrade strategies 🙂 In any case, Bridge is a wonderful tool to upgrade any Nuxt app that's behind on the schedule and I think it's not fair to say it's a nightmare considering the work Daniel, Wattanx and the other contributors they've put into this package for the sole purpose of easing migrations |
Environment
Darwin
v16.15.0
2.15.8
0.6.0
[email protected]
webpack
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
@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,v-wave/nuxt
()
,@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
Some modules like nuxt/sitemap ou nuxt/pwa generate this error: [h3] [unhandled] next is not a function with nitro 6.0.0.
This is probably due to last update of nitro to unjs/h3.
Note: this warning is show on the compilation of the app:
WARN [h3] Implicit event handler conversion is deprecated. Use eventHandler() or fromNodeMiddleware() to define event handlers.
Excuse if I miss something, it's my first issue that a report. I try to do it wright, and I hope you can fix it this issue 🙏. Thx for the amazing work.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: