`project` option type should be `string | string[]` across all framework SDKs
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- frontend
Research direction
Review the Next.js fix in pull request 21067, then inspect the listed type definitions in packages/core/src/build-time-plugins/buildTimeOptionsBase.ts, packages/solidstart/src/vite/types.ts, and the Astro, Nuxt, and SvelteKit integration files. Update each project option type consistently and verify that all listed SDK locations accept the same values as the bundler plugin.
Written by the indexing model from the issue text.
Description
@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.
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 521
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-javascript
-
Flaky Test React Router Framework Spans Tests
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-javascript#24348 · 1 comment ·
-
javascript
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getsentry/sentry-javascript#24200 · 2 comments ·
-
javascript Task
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
getsentry/sentry-javascript#24134 · 1 comment ·
-
Cloudflare Workers javascript Tests
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsentry/sentry-javascript#24051 · 1 comment ·
-
Bug Bun javascript
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
getsentry/sentry-javascript#24045 · 1 comment ·
All issues in getsentry/sentry-javascript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 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
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·