组合错误:[GraphQL] id 的经验不存在

Las*_*eed 1 javascript expo eas

我正在为我的博览会应用程序使用动态配置,这似乎在尝试时导致了一些问题expo build。我已将 expo 项目正确链接到 eas 项目,并且在运行以expo build我开头的任何命令时会抛出以下错误:

CombinedError: [GraphQL] Experience with id 'xxx-1xxx-4xxx-bx-baxxxfc' does not exist.

我怀疑我的 app.config.json 是问题所在,但我不知道如何修复它

import "dotenv/config";

export default {
  expo: {
    name: "LetsChat",
    slug: "LetsChat",
    version: "1.0.0",
    scheme: "com.bertdelaspeed.letschat",
    orientation: "portrait",
    icon: "./assets/icon.png",
    userInterfaceStyle: "light",
    splash: {
      image: "./assets/splash.png",
      resizeMode: "contain",
      backgroundColor: "#ffffff",
    },
    updates: {
      fallbackToCacheTimeout: 0,
    },
    assetBundlePatterns: ["**/*"],
    ios: {
      supportsTablet: true,
    },
    android: {
      package: "com.bertdelaspeed.letschat",
      googleServicesFile: "./google-services.json",
      adaptiveIcon: {
        foregroundImage: "./assets/adaptive-icon.png",
        backgroundColor: "#FFFFFF",
      },
    },
    web: {
      favicon: "./assets/favicon.png",
    },
    extra: {
      apiKey: process.env.API_KEY,
      authDomain: process.env.AUTH_DOMAIN,
      projectId: process.env.PROJECT_ID,
      storageBucket: process.env.STORAGE_BUCKET,
      messagingSenderId: process.env.MESSAGING_SENDER_ID,
      appId: process.env.APP_ID,
      measurementId: process.env.MEASUREMENT_ID,
      eas: {
        projectId: "xxx-1xxx-4xxx-bx-baxxxfc",
      },
    },
    plugins: [
      [
        "expo-image-picker",
        {
          photosPermission:
            "The app accesses your photos to let you share them with your friends.",
        },
      ],
    ],
  },
};
Run Code Online (Sandbox Code Playgroud)

Man*_*han 5

您可能需要更改app.json 中 extra.eas.projectId 下的项目 id字段 - 它似乎以某种方式设置为不正确的值

您将从Extra --> eas --> ProjectID下的 app.json 中获取产品 id

在此输入图像描述