shopify app deploy blocked by phantom [events]: Required — Partner Dashboard shows no Events feature enabled
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
首先,使用只包含 [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
- Have an existing app with a
shopify.app.tomlthat has never used[events](just a plain[webhooks]section withapi_versionset, no subscriptions). - Run
shopify app config validate(orshopify app deploy). - Observe:
╭─ error ──────────────────────────────────────────────────────────────────────╮ │ │ │ Validation errors found. │ │ │ │ • [events]: Required │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯
What I tried
- Confirmed it's not a local-CLI-version issue — reproduced the identical error on
@shopify/cli4.7.0, 4.6.1, 4.0.0, and 3.94.3 (full major-version spread) vianpx @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. - Added a minimal
[events]block toshopify.app.toml:
This flips to two contradictory errors:[events] api_version = "2026-07"
So the backend simultaneously demands the section and rejects it as unsupported for this app — no toml content can satisfy both at once.[events.subscription]: Required Unsupported section(s) in app configuration: events
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_versionset, 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Shopify/cli 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 5/5 一周以上 新手友好度 15/100
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100