Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
module : Using store in component - Nuxt
N
Nuxt
•
16mo ago
•
1 reply
Thomas
module : Using store in component
Hello
, I
'm building a module and I have a component that loads data from the pinia store
.
I use the suggested syntax
:
const store = useStore()
const store = useStore()
. Everything is working great on the dev playground app
, but when I use my module with a new app
, importing my component I have this error
:
500 : useStore is not defined
500 : useStore is not defined
and the stack trace refer to my component
Nuxt
Join
Nuxt Community Chat Server
31,817
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Autoimport components in module
N
Nuxt / ❓・help
8mo ago
Mocking Pinia Store in Vitest Component Test
N
Nuxt / ❓・help
2y ago
Using index.vue in component folders
N
Nuxt / ❓・help
9mo ago
Responsive component property racing pinia store
N
Nuxt / ❓・help
14mo ago