Failed to resolve import "vuex/types/index.js" from "src/stores/store.ts" #11999
Unanswered
DevKame
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
Why are you importing from |
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
-
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