小编wyp*_*ama的帖子

找不到名称“defineNuxtConfig”.ts(2304)

我尝试使用turborepo 在 monorepo 中安装 Nuxt 3 层。我不知何故在打字稿中遇到错误,它似乎无法弄清楚 nuxt

找不到defineNuxtConfig

找不到应用程序配置

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)

nuxt.js nuxt3

12
推荐指数
2
解决办法
9987
查看次数

标签 统计

nuxt.js ×1

nuxt3 ×1