Vetur can’t find `tsconfig.json` or `jsconfig.json` in

Visual Studio Code打开Vue项目出现Vetur can't find `tsconfig.json` or `jsconfig.json` in的时候,在项目根目录增加文件jsconfig.json,文件中加入:

{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@/*": ["src/*"]
    }
  },
  "exclude": ["node_modules", "dist"],
}
本条目发布于。属于科技分类,被贴了 标签。作者是

关于有个狸

2005年开始的一名站长,从事网站策划、运营,早期一批扎根阿里妈妈、Google Adsense的一员,目前司职前端与产品设计。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注