Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

shopify app deploy blocked by phantom [events]: Required — Partner Dashboard shows no Events feature enabled

未关闭
#8,386 26 条评论 33 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
typescript
领域
backend, cli

调研方向

首先,使用只包含 [webhooks] 的 shopify.app.toml,通过 shopify app config validate 和 shopify app deploy 重现该故障。跟踪配置验证的入口点以及 Partner Dashboard 的响应;当未启用 Events 的应用不再收到相互矛盾的 [events] 错误,或消息明确指出所需的启用步骤时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

CLI version: reproduced identically on 4.7.0, 4.6.1, 4.0.0, and 3.94.3

Problem

shopify app deploy (and shopify app config validate) fails with:

[events]: Required

even though shopify.app.toml has no [events] section and never has. I checked the Partner Dashboard for this app — there's no mention of "Events" / "Next-Gen Events" anywhere, no toggle, nothing to enable or configure.

Steps to reproduce

  1. Have an existing app with a shopify.app.toml that has never used [events] (just a plain [webhooks] section with api_version set, no subscriptions).
  2. Run shopify app config validate (or shopify app deploy).
  3. Observe:
    ╭─ error ──────────────────────────────────────────────────────────────────────╮
    │                                                                              │
    │  Validation errors found.                                                    │
    │                                                                              │
    │  • [events]: Required                                                        │
    │                                                                              │
    ╰──────────────────────────────────────────────────────────────────────────────╯
    

What I tried

  1. Confirmed it's not a local-CLI-version issue — reproduced the identical error on @shopify/cli 4.7.0, 4.6.1, 4.0.0, and 3.94.3 (full major-version spread) via npx @shopify/cli@<version> app config validate. Since the required-field set differs across those releases, this points to the check coming from the Partners backend, not code bundled in the CLI.
  2. Added a minimal [events] block to shopify.app.toml:
    [events]
    api_version = "2026-07"
    
    This flips to two contradictory errors:
    [events.subscription]: Required
    Unsupported section(s) in app configuration: events
    
    So the backend simultaneously demands the section and rejects it as unsupported for this app — no toml content can satisfy both at once.

Expected behavior

shopify app deploy should succeed without requiring a section for a feature that isn't enabled for the app/org, or the error message should point at what actually needs enabling instead of a self-contradictory pair of validation errors.

Context

  • App has an existing, working [webhooks] section (api_version set, no subscriptions configured yet).
  • Partner Dashboard shows no "Events" (developer preview) toggle or notice for this app.
主要语言
TypeScript
星标
750
派生
293
平均合并
3 天 20 小时
30 天内合并 PR
79

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Shopify/cli 的其他 Issue

查看 Shopify/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。