vite+ts: can't use "this" in getters, how to solve? #1502
-
reproduct url: https://stackblitz.com/edit/vitejs-vite-guherm?file=package.json it's not pinia issues, i find some related issue, but not with pinia this warning can slient by follow config help wanted |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
it seems this warning is caused by mine error use way, i should not use arrow function, but use normal function still have type error |
Beta Was this translation helpful? Give feedback.
-
😸 thanks, add return type work well, i really should learn |
Beta Was this translation helpful? Give feedback.
it seems this warning is caused by mine error use way, i should not use arrow function, but use normal function still have type error