© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Middlewares run before plugins are initialized? - Nuxt
N
Nuxt
•
14mo ago
•
4 replies
Blaze / Patrick
Middlewares run before plugins are initialized?
Hey everyone
. We
're having a lot of trouble with our Nuxt instance
, where seemigly middlewares can be running before plugins are fully initialized
. Which in our case breaks pinia stores that are accessed in middlewares and other strange things
.
I even found this rather new bug report from someone else on
https://github.com/nuxt/nuxt/issues/30824
Any ideas on this
? Might this be a nuxt
-internal bug
?
GitHub
Production mode: Middleware triggered before plugin · Issue #30824 ...
Environment Operating System
: Windows
_NT Node Version
: v20
.14
.0 Nuxt Version
: 3
.15
.4 CLI Version
: 3
.21
.1 Nitro Version
: 2
.10
.4 Package Manager
: npm
@10
.7
.0 Builder
:
- User Config
: ssr
, compatibility
.
.
.
Recent Announcements
Similar Threads
Does plugins run after server middlewares?
N
Nuxt / ❓・help
2y ago
Server middlewares issue
N
Nuxt / ❓・help
2y ago
Middlewares no longer work.
N
Nuxt / ❓・help
2y ago
Can you define a page completely separately from the rest (no plugins, no middlewares etc)?
N
Nuxt / ❓・help
17mo ago