I am currently in the process of converting a JavaScript project to TypeScript. However, I have encountered a type error when attempting to integrate Vuex with Vue.
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
https://i.sstatic.net/e7dEP.png
It seems like the issue stems from Vuex lacking proper type definitions compared to Vue.js?
As a workaround, I had to include
"allowSyntheticDefaultImports": true
in my tsconfig.json file.
Can anyone provide guidance on how to resolve this problem and ensure Vue.use recognizes Vuex as the correct type?