Skip to content

From vue 3.5.0 on, types for $t, $d, etc. are no longer recognised correctly #2236

@pindab0ter

Description

@pindab0ter

Reporting a bug?

From Vue 3.5.0 onwards, the type definitions from vue-i18n no longer display correctly in both PHPStorm 2015.1.3 and VSCode 1.102.0. In my testing I have used the reproduction minimal started with all dependencies updated to their most recent versions as of writing, except for vue.

Situation with "vue": "3.4.38":

Image Image

Situation with "vue": "3.5.0" (same with 3.5.0-alpha.1):

Image Image

Expected behavior

See previous

Reproduction

https://github.com/pindab0ter/vitejs-vite-gfrx6w

The latest commit is with the earliest stable version causing the issue ("vue": "3.5.0"). The commit before that is in a state with the expected behavior ("vue": "3.4.38").

System Info

System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 155.53 MB / 16.00 GB
    Shell: 4.0.0 - /opt/homebrew/bin/fish
  Binaries:
    Node: 24.4.1 - /opt/homebrew/bin/node
    npm: 11.4.2 - /opt/homebrew/bin/npm
    pnpm: 10.13.1 - /opt/homebrew/bin/pnpm
    bun: 1.2.19 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 138.0.7204.158
    Safari: 18.5
  npmPackages:
    @vitejs/plugin-vue: ^6.0.0 => 6.0.0
    vite: ^7.0.5 => 7.0.5
    vue: 3.5.0 => 3.5.0
    vue-i18n: ^11.1.11 => 11.1.11
    vue-tsc: ^3.0.3 => 3.0.3

Screenshot

No response

Additional context

No response

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