Trouble referencing this.store
via computed properties & methods
#1206
Unanswered
timusus
asked this question in
Help and Questions
Replies: 1 comment 1 reply
-
@timusus you can move computed into setup, that will be works. or remove 'this' |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm having trouble referencing a Pinia store from a Vue component:
This fails to build, with the following message:
I think this has something to do with the
lang="ts"
present in<script>
. I'd prefer to use TypeScript if possible, as I do like using strong types where I can.The store looks like so:
And in the
main.ts
, Pinia is initialised:Any assistance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions