首页 > 其他分享 >Vetur can't find `tsconfig.json` or `jsconfig.json` in *****报错

Vetur can't find `tsconfig.json` or `jsconfig.json` in *****报错

时间:2024-04-26 14:57:13浏览次数:13  
标签:find json 报错 Vetur 根目录 tsconfig jsconfig

解决Vscode报错 [Vetur can‘t find ‘tsconfig.json‘ or ‘jsconfig.json‘]

 

报错原因
翻译一下报错信息,"Vetur找不到tsconfig.json文件或者jsconfig.json文件".

首先Vetur只会扫描项目的根目录下的jsconfig或者tsconfig,如果没有这两个文件之一,就会报错.

如果你是通过vue-cli创建的vue项目,默认都会有jsconfig或者tsconfig,那问题极有可能是打开项目文件夹的时候路径不对:

以下是正确打开方式(根目录下有jsconfig或者tsconfig):

 

 

以下是错误示范:

 

 

一定切记根目录跟jsconfig.json不能是嵌套关系,jsconfig.json必须在根目录下
补充一点,vetur插件尽量不要和volar插件同时使用,可能会产生冲突.

标签:find,json,报错,Vetur,根目录,tsconfig,jsconfig
From: https://www.cnblogs.com/luckyuns/p/18160047

相关文章

  • JSON基本使用 - 副本
    1.JSON是什么?JSON,全称是JavaScriptObjectNotation,即JavaScript对象标记法。JSON是一种轻量级(Light-Meight)、基于文本的(Text-Based)、可读的(Human-Readable)格式。JSON的名称中虽然带有JavaScript,但这是指其语法规则是参考JavaScript对象的,而不是指只能用于JavaSc......
  • golang之json.RawMessage
    RawMessage具体来讲是json库中定义的一个类型。它实现了Marshaler接口以及Unmarshaler接口,以此来支持序列化的能力。注意上面我们引用 官方doc 的说明。 使用场景设想一下,我们给某种业务场景定义了一个通用的model,其中部分数据需要在不同场景下对应不同的结构体......
  • npm install 安装插件报错
    1、npminstall@ant-design/charts--save  报错 npmERR!codeERR_SOCKET_TIMEOUTnpmERR!networkSockettimeoutnpmERR!networkThisisaproblemrelatedtonetworkconnectivity.npmERR!networkInmostcasesyouarebehindaproxyorhavebadnetwo......
  • 处理报错 ResizeObserver loop completed with undelivered notifications.
    //处理报错ResizeObserverloopcompletedwithundeliverednotifications.exportconsthandlerResizeObserverError=()=>{constdebounce=(callback:(...args:any[])=>void,delay:number)=>{lettid:any;returnfunction(...args:an......
  • v-for 循环时直接使用 v-model 绑定报错
    报错信息:Youarebindingv-modeldirectlytoav-foriterationalias.Thiswillnotbeabletomodifythev-forsourcearraybecausewritingtothealiasislikemodifyingafunctionlocalvariable. 错误代码<divv-for="(item,index)indata":key......
  • vite打包,pdfjs-dist 报错import引入pdfjs-dist报错Top-level await is not available
    Top-levelawaitisnotavailableintheconfiguredtargetenvironment("chrome87","edge88","es2020","firefox78","safari14"+2overrides)node_modules/pdfjs-dist/build/pdf.mjs:17349:53:17349│/****......
  • Javascript的数据类型和json数组
    4个数据类型:NumberStringBooleanUndefinedalert(parseInt(k));//如果不是数字会输出NaN,从第一个字符开始输出数字,直到不是数字后返回值。json数组://js中k、v型数据,使用jsonvarperson={name:"张三",//注意里面的元素用,分割。定义的是key是name的value值为张三age......
  • Prometheus连接Alertmanager报错410
        ......
  • Electron打包的时候路径出现问题!include: could not find: "C:\Users\xxxx\AppDat
    !include:couldnotopenfile:"C:\ztg\projects\electron-vite-vue-ts\node_modules\.pnpm\[email protected][email protected][email protected]_dmg-bui_lrspnoputfiosacwyigcypdbdi\node_modules\app-builder-lib\t......
  • JSON 序列化 属性名 大写变成小写 保持不变 newsoft.json system.text.json
    JSON序列化属性名由大写变成小写的问题在ASP.NET中,默认情况下,JSON序列化会将属性名转换为小写(camelcase)以匹配JSON的约定。如果您希望保留C#的命名约定(即属性名的大小写不变),您需要更改默认的JSON序列化器。System.Text.Json使用System.Text.Json(推荐):在Startup.c......