Skip to content

How to exclude some files for type checking with vue-tsc? #2229

Closed
@johnson86tw

Description

@johnson86tw

Hi @johnsoncodehk,

In my project, I want to exclude src/graphql/API.ts for type-checking so I excluded it in tsconfig like this

  • tsconfig.json
"exclude": ["node_modules", "src/graphql/API.ts"]

But I still got the error from this file when I run vue-tsc --noEmit in the project

截圖 2022-12-19 下午3 15 29

Could you provide me with some advice about how to solve this issue?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions