Skip to content

Vetur can't find tsconfig.json or jsconfig.json #2765

Closed
@jacrosby

Description

  • I have searched through existing issues
    I have read through docs
    I have read FAQ
    I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Win
  • Vetur version: v0.33.1
  • VS Code version: 1.54.1

Problem

I have a VS Code workspace with many projects, one is the Vue frontend and all the others are backend services running .Net Core. On loading VS Code, I get dozens of messages about Vetur not being able to find tsconfig.json or jsconfig.json relating to the .Net Core services which obviously won't have those files. How can I stop Vetur showing these messages without adding any Vetur config files to those projects? They are not frontend projects so shouldn't be littered with frontend related config files. Thanks in advance!

image

Reproducible Case

  • Create a new workspace file in VS Code
  • Add a Vue project to workspace
  • Add a .Net Core project to workspace
  • Open VS Code and you should see those messages

Activity

jacrosby

jacrosby commented on Mar 9, 2021

@jacrosby
Author

Thanks, I had seen that but missed the crucial line about the VS Code setting!

melroy89

melroy89 commented on Oct 30, 2021

@melroy89
yoyo930021

yoyo930021 commented on Nov 1, 2021

@yoyo930021
Member

https://vuejs.github.io/vetur/guide/FAQ.html#vetur-can-t-find-tsconfig-json-jsconfig-json-in-xxxx-xxxxxx

Is this file still required for V3? I could not find anything on: https://v3.vuejs.org/. Sorry..

It is also needed in vue3. Not related to the Vue version.

artnikbrothers

artnikbrothers commented on Nov 18, 2021

@artnikbrothers

spent some time to find the line in docs about disabling it. For those like me will just post a screenshot

image

songwen02

songwen02 commented on May 17, 2023

@songwen02

thanks👍

madlife12327

madlife12327 commented on Jan 4, 2024

@madlife12327

vetur only scan your project root folder , please restart vscode and make sure the root folder include jsconfig.json or tsconfig.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @melroy89@yoyo930021@artnikbrothers@caiqichang@jacrosby

      Issue actions

        Vetur can't find tsconfig.json or jsconfig.json · Issue #2765 · vuejs/vetur