Closed
Description
Hello,
When using the latest version of create-vue with typescript 5 and vuex, we get an error.
src/store/index.ts - error TS7016: Could not find a declaration file for module 'vuex'.
'node_modules/vuex/dist/vuex.mjs' implicitly has an 'any' type.
There are types at 'node_modules/vuex/types/index.d.ts', but this result could not be resolved
when respecting package.json "exports". The 'vuex' library may need to update its package.json or typings.
There are quite a few issues about this on the Vuex repo, but nobody fixes it :
- Fix type definitions with
moduleResolutions
nodenext
vuex#2213 - vite 创建vue项目,安装vuex后vscode报错,Could not find a declaration file for module 'vuex'. vuex#2223
In the replies, users explain that Vuex is no longer maintained.
Given that Vuex is a Vue project, would it be possible to apply the fix?
vuejs/vuex#2219
vuejs/vuex#2220
Thanks in advance
Mathieu
Metadata
Metadata
Assignees
Labels
No labels