vue升级到最新版本,node18 会出现warning 参考issues

Cannot find base config file @vue/tsconfig/tsconfig.web.json

"dependencies": {
	...
    "vue": "^3.3.4"
},

"devDependencies": {
	...
 	"vite": "^4.3.8",
 }

解决方案

  "extends": "@vue/tsconfig/tsconfig.web.json",
  // 改成:
  "extends": "@tsconfig/node18/tsconfig.json",

  "devDependencies": {
     // 增加
    "@tsconfig/node18": "^2.0.1"
    }
Logo

前往低代码交流专区

更多推荐