-
-
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
Client-side middlewares don't work #55
Comments
Are client side middlewares supported on nuxt 3? Because there are no docs for them. I guess you can use a defered call via |
I can't reproduce this on Nuxt Bridge. Would you provide a minimal reproduction please? 🙏 |
Hi @danielroe
Folder setup:
Nuxt config:
I'm expecting it to run on every route. |
@danielmalmros This issue is about Bridge. Nuxt 3 middleware support is in progress. |
@danielroe Just checking in so I'm 100% clear on this, can we expect to get client-side middleware support with Nuxt 3 (not Bridge)? You say 'in progress' which leads me to believe Nuxt 3 will have middleware similar to Nuxt 2; I wanted to double-check that this is the case. Thanks! |
Just an update for closure, looks like clientside middleware has been added. Check it out |
@tobiasdiez Are you still experiencing this issue? |
Environment
Windows_NT
v17.0.1
2.16.0-27273615.ab1c6cb4
yarn@1.22.15
Webpack
target
,bridge
,vite
,alias
,nitro
,ssr
,head
,css
,plugins
,components
,tailwindcss
,buildModules
,modules
,serverMiddleware
,watch
,privateRuntimeConfig
,build
,storybook
-
@nuxtjs/tailwindcss@4.2.1
,portal-vue/nuxt
,@nuxt/postcss8@1.1.3
,@pinia/nuxt@0.1.0
,@nuxt/bridge@3.0.0-27276275.abfbd2f
Describe the bug
Having a page with
middleware: ['test']
and an (empty) middleware inmiddleware/test.ts
, you get an error on loading the page that the middleware 'test' is not found one page load.This has been reported before in some way or another:
https://github.com/nuxt/framework/discussions/973
https://github.com/nuxt/framework/discussions/906
Reproduction
JabRef/JabRefOnline#480
Reenable the middleware comment in
dasboard.vue
and runyarn dev
.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: