GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — @sentry/react 11.10.0 to 11.12.0: BrowserOptions is no longer assignable to BrowserClient constructor options (TS2345 on `tunnel`) · Issue #26306 · getsentry/sentry-javascript Closed DescriptionIs there an existing issue for this?
How do you use Sentry?Sentry Saas (sentry.io) Which SDK are you using?@sentry/react SDK Version11.12.0 Framework VersionReact 19, TypeScript 6.0.3 Link to Sentry eventNo response Reproduction Example/SDK Setup
import { BrowserClient, defaultStackParser, makeFetchTransport, type BrowserOptions, } from '@sentry/react'; const options: BrowserOptions = { dsn: 'https://[email protected]/0', tunnel: '/tunnel', }; export const client = new BrowserClient({ ...options, integrations: [], stackParser: defaultStackParser, transport: makeFetchTransport, });
{
"compilerOptions": {
"noEmit": true,
"target": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": false,
"lib": ["dom", "esnext"],
"skipLibCheck": true
},
"include": ["repro.ts"]
}
{ "name": "repro", "private": true, "type": "module" }Steps to Reproducenpm install [email protected] react@19 @sentry/[email protected] npx tsc -p . # exit 0 npm install @sentry/[email protected] npx tsc -p . # TS2345 npm install @sentry/[email protected] npx tsc -p . # TS2345 npm install @sentry/[email protected] npx tsc -p . # TS2345 It fails with Expected ResultIt compiles, as on 11.9.0. Any one of these would do:
Actual ResultOn 11.10.0, 11.11.0 and 11.12.0 ( Additional ContextDescription Since 11.10.0, An object typed as
Environment: TypeScript 6.0.3, Node 24.22.2, react 19. Where the two types diverge (11.11.0)
Possibly related to the tunnel rework tracked in #25466 and #26193. PriorityNo response Activity
MetadataMetadataAssigneesProjects
MilestoneRelationshipsDevelopmentIssue actions | ||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |