Skip to content

What is the correct configuration for tsconfig.json? #668

@cesxhin

Description

@cesxhin

I noticed that it is not typed correctly and when I do the build it produces a different output than when I open the vscode window which types by itself.

Actual configration tsconfig.json is there:

{
  "extends": "./.nuxt/tsconfig.json",
  "exclude": [
    "dist",
    "node_modules",
    "playground",
  ]
}

Updated

When opening a .vue file or restarting the TS server with the Vue Volar plugin, a .vue-global-types folder is created in node_modules, and thanks to its base definitions, typing works completely.

However, when building, I cannot rely on the Vue Volar plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions