Skip to content
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

Pinia with version 2.2.0 is required #126

Closed
sabel8 opened this issue Dec 3, 2024 · 1 comment
Closed

Pinia with version 2.2.0 is required #126

sabel8 opened this issue Dec 3, 2024 · 1 comment

Comments

@sabel8
Copy link

sabel8 commented Dec 3, 2024

I tried to use the package for my project, however after a weird issue in the console and some time looking into the issue, I found that my error is probably due to a feature missing in my version of Pinia (2.0.26) and seems like that feature is added in 2.2.0. The action helper was added to defineStore.

The error I was getting:
Uncaught TypeError: Cannot destructure property 'action' of 'undefined' as it is undefined.
image

The related code snippet:
image

@posva
Copy link
Owner

posva commented Dec 3, 2024

I thought I had specified this in peerDeps but clearly not.
Upgrade pinia and you are good to go 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants