Failed to resolve import "vuex/types/index.js" from "src/stores/store.ts" #11999
Unanswered
DevKame
asked this question in
Help/Questions
Replies: 2 comments 2 replies
-
Why are you importing from |
Beta Was this translation helpful? Give feedback.
2 replies
-
were you able to find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I work on a Vue+TS project where i decided during working, that i want to use vuex for state management.
Project was created with npm create vue@latest.
after adding vuex with npm i vuex@latest i created my store:
store.ts:
Both my app and the IDE did not throw any warnings or errors.
Then i switched to my main.ts and wanted to add the store there:
main.ts:
Then i get this error:

Are there any additional config settings i have to make or did i do sth fundamentally wrong?
info that might be relevant:
durign the initial config for creating the project i accidently said YES to using pinia. I deleted it with npm uninstall pinia first, before installing vuex. Just wanted to let you know in case there might be some pinia-specific configs somewhere that need to be taken care of.
Beta Was this translation helpful? Give feedback.
All reactions