首页 > 其他分享 >vscode

vscode

时间:2022-11-04 21:03:06浏览次数:47  
标签:vueCompilerOptions vscode json jsconfig 2.7 target

Target version not match, you can specify the target version in vueCompilerOptions.target in tsconfig.json / jsconfig.json. (expected “target”: 2.7)

这是因为安装了vue3对应的插件volar之后打开了vue2版本的项目导致的,需要在jsconfig.json里主动指明当前版本
image

在项目根路径jsconfig添加以下配置即可

"vueCompilerOptions": {
    "target": 2.7
  }

image

标签:vueCompilerOptions,vscode,json,jsconfig,2.7,target
From: https://www.cnblogs.com/lisony/p/16859103.html

相关文章

  • vscode
    https://geek-docs.com/vscode/vscode-tutorials[https://blog.csdn.net/m0_46607117/article/details/124209280](vscode终端美化)......
  • WINDWOS环境下VSCODE开发LINUX的环境搭建
    1、将linux源码中的/usr/include文件夹复制到windows的桌面2、新建一个linux的文件夹,把上述文件夹复制到linux文件夹里3、将linux文件夹放置到C:/ProgramFiles/Microsof......
  • vscode auto import npm package All In One
    vscodeautoimportnpmpackageAllInOnevscodeAutoimportssettings.json{"javascript.suggest.autoImports":true,//importstyle"javascript.pre......
  • 02_vscode自动编译
     生成配置文件tsconfig.jsontsc--init  修改tsconfig.json配置 (以上内容均是学习尚硅谷课程笔记) 启动监视任务终端 > 运行任务 > 监视tsconfig.jso......
  • vscode商店打不开
    以管理员身份打开命令行(CMD):输入以下命令ipconfig/renewipconfig/registerdnsipconfig/flushdnsipconfig/release(注:分四行输入,每次输入完一行按下enter键)重......
  • VScode ssh 卡在Copying VS Code Server to host with scp
    VSCodessh卡在SettingupSSHHostXX:CopyingVSCodeServertohostwithscpVSCodesshServer卡在SettingupSSHHostXX:DownloadingVSCodeServer解决方案......
  • vscode stm32调试环境搭建
     一、安装vscodehttps://blog.csdn.net/m0_62349010/article/details/122867131二、安装扩展(extension)C/C++:又名cpptools,提供Debug和Format功能CodeRunner:右键......
  • vscode配置Go开发环境
    这篇文章主要介绍了手把手教你vscode配置golang开发环境的步骤,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下 1.下载安......
  • vscode路径映射跳转
    第一步在项目目录下找到jsconfig.json文件,设置下面代码//{//"compilerOptions":{//"baseUrl":"./",//"paths":{//"@/*":["src/*"]//......
  • vscode 内建变量
    转载自https://blog.csdn.net/weixin_39249524/article/details/105438814,本人做了部分小修正更多详见:https://code.visualstudio.com/docs/editor/variables-reference$......