`project` option type should be `string | string[]` across all framework SDKs
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- frontend
调研方向
检查 pull request 21067 中的 Next.js 修复,然后检查 packages/core/src/build-time-plugins/buildTimeOptionsBase.ts、packages/solidstart/src/vite/types.ts 以及 Astro、Nuxt 和 SvelteKit 集成文件中列出的类型定义。统一更新每个项目的选项类型,并验证所有列出的 SDK 位置都接受与打包器插件相同的值。
由索引模型根据 Issue 内容生成。
描述
@sentry/bundler-plugin-core accepts string | string[] for the project option, but our SDK types narrow it to string, causing a TypeScript error when users pass an array.
https://github.com/getsentry/sentry-javascript/pull/21067 fixes this for Next.js. The same mismatch exists in:
Top-level options:
packages/core/src/build-time-plugins/buildTimeOptionsBase.ts:40(root cause — inherited by nuxt, sveltekit, astro)packages/solidstart/src/vite/types.ts:111(standalone definition)
Deprecated sourceMapsUploadOptions.project:
packages/astro/src/integration/types.ts:66packages/nuxt/src/common/types.ts:118packages/sveltekit/src/vite/types.ts:42
These deprecated options are still live code paths — each SDK falls back to them via topLevel.project ?? sourceMapsUploadOptions.project ?? env, so users who haven't migrated hit the same TS error.
All locations forward project verbatim to the bundler plugin, so the fix is type-only: widen to string | string[] in each location.
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.9k
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 521
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-javascript 的其他 Issue
-
Browser Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 85/100
getsentry/sentry-javascript#24577 · 1 条评论 ·
-
Task
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-javascript#24558 · 1 条评论 ·
-
Task
难度 1/5 1 小时以内 新手友好度 90/100
getsentry/sentry-javascript#24557 · 1 条评论 ·
-
Task
难度 2/5 1-3 小时 新手友好度 84/100
getsentry/sentry-javascript#24556 · 1 条评论 ·
-
Task
难度 1/5 1-3 小时 新手友好度 90/100
getsentry/sentry-javascript#24555 · 1 条评论 ·
查看 getsentry/sentry-javascript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
copse-dev/agent-pane#2953 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
calcite-components needs triage refactor
难度 2/5 1-3 小时 新手友好度 75/100
Esri/calcite-design-system#15203 ·