Skip to content

vue-i18n imports undefined type GenericComponentInstance #2335

@overheadhunter

Description

@overheadhunter

Reporting a bug?

node_modules/vue-i18n/dist/vue-i18n.d.ts:10:15 - error TS2724: '"vue"' has no exported member named 'GenericComponentInstance'. Did you mean 'ComponentInstance'?

10 import type { GenericComponentInstance } from 'vue';

Expected behavior

latest stable vue-i18n (currently 11.2.2) only uses types from latest stable vue (currently 3.5.25)

Reproduction

npm run build with tsconfig: "skipLibCheck": false

https://stackblitz.com/edit/vitejs-vite-iphr9ytw?file=README.md&view=editor

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @intlify/devtools-types: 11.2.2 => 11.2.2 
    @vitejs/plugin-vue: 6.0.1 => 6.0.1 
    vite: 7.1.10 => 7.1.10 
    vue: 3.5.25 => 3.5.25 
    vue-i18n: 11.2.2 => 11.2.2 
    vue-tsc: 3.1.1 => 3.1.1

Screenshot

No response

Additional context

You might as well consider this a documentation issue, if you think that "skipLibCheck" needs to be true.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions