我尝试使用turborepo 在 monorepo 中安装 Nuxt 3 层。我不知何故在打字稿中遇到错误,它似乎无法弄清楚 nuxt
ts 配置文件如下所示:
{
"extends": "./.playground/.nuxt/tsconfig.json"
}
Run Code Online (Sandbox Code Playgroud)
在 .playground/.nuxt 文件夹上有 tsconfig ,如下所示(自动生成):
// Generated by nuxi
{
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"jsx": "preserve",
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"skipLibCheck": true,
"strict": true,
"allowJs": true,
"noEmit": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"types": [
"node"
],
"baseUrl": "..",
"paths": {
"~": [
"."
],
"~/*": [
"./*"
],
"@": [
"."
],
"@/*": [
"./*"
],
"~~": [
"."
],
"~~/*": [ …Run Code Online (Sandbox Code Playgroud)