Skip to content

Cant use pinia outside components. #1157

Closed Answered by posva
StefanGhiban asked this question in Help and Questions
Discussion options

You must be logged in to vote

You have to make sure any useStore function is called after calling app.use(pinia). Maybe in your code the useStore function is being called before that.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@StefanGhiban
Comment options

@Sovai
Comment options

@StefanGhiban
Comment options

@tomrob270
Comment options

@Sovai
Comment options

Answer selected by StefanGhiban
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants