Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type definitions with vue-create & vuex #291

Closed
messenjer opened this issue Jun 2, 2023 · 2 comments
Closed

Fix type definitions with vue-create & vuex #291

messenjer opened this issue Jun 2, 2023 · 2 comments

Comments

@messenjer
Copy link
Contributor

messenjer commented Jun 2, 2023

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 :

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

@liuwenzhi0318
Copy link

我这两天也是一直这样,找不到问题

@messenjer
Copy link
Contributor Author

I'm using https://github.com/ds300/patch-package to apply the fix for vuex and vuei18n.

As it's an issue with vuex, I'm closing the issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants