Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module 'pinia' or its corresponding type declarations

I'm working on a Vue+Quasar project and trying to switch the store from Vuex to Pinia. I installed Pinia but I'm still getting an error message in PyCharm saying "Cannot find module 'pinia' or its corresponding type declarations".

enter image description here

like image 799
Nathan Wailes Avatar asked Nov 30 '25 20:11

Nathan Wailes


2 Answers

I am using Webstorm 2022.3, and reopening the IDE does the trick. This might be an IDE issue that fails to reload node_module index information.

like image 61
frzhen77 Avatar answered Dec 02 '25 10:12

frzhen77


For VS Code, restart TypeScript Server

  • Press Ctrl + Shift + P
  • Search for Typescript: Restart TS Server
like image 29
miro Avatar answered Dec 02 '25 09:12

miro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!