Skip to content

Fix type definitions with vue-create & vuex #291

Closed
@messenjer

Description

@messenjer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions