persist
in defineStore gives typescript error (at least on Windows environment)
#373
Open
5 tasks done
Labels
🔍️ pending triage
This issue needs to be looked into
Are you using Nuxt?
Describe the bug
Given following code:
The
persist: true
gives following error when runningnpx vue-tsc
:VS Code also highlights this problem. I set up a minimal reproduction environment and there the problem does not happen. Could this be a windows environment issue? Other is that the Stackblitz env is running Node v18.
You can run
npx vue-tsc
in the reproduction and see error about thethis.test
getting a number. On Windows env (with node v20) you also get the above error.Reproduction
https://stackblitz.com/edit/nuxt-starter-5tjffbh4?file=stores%2Ftest.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: