Skip to content

[WebStorm] Type error '__VLS_ctx.$t' is of type 'unknown'. #3271

@IgorKha

Description

@IgorKha

Environment



export default defineNuxtConfig({
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },

  modules: ["@pinia/nuxt", "@nuxt/eslint", "@nuxtjs/i18n"],
  i18n: {
    debug: true,
    types: 'composition',
    strategy: 'no_prefix',
    defaultLocale: 'en',
    lazy: true,
    langDir: 'locales',
    locales: [
      {
        name: 'English',
        code: 'en',
        language: 'en-GB',
        file: 'en-GB.json',
      },
    ],
  },

  future: {
    compatibilityVersion: 4,
  },

Reproduction

I don't know how reproduce this problem in online services

Describe the bug

With this configuration on a clean project I get this typing error: '__VLS_ctx.$t' is of type 'unknown'.

Image

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamIssue requires changes by a dependency rather than in this repo.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions