Skip to content

Undefined hub.startSession on v6 upgrade #3234

@namoscato

Description

@namoscato

Package + Version

  • other: @sentry/react

Version:

6.0.4

Description

I'm getting an error when bumping @sentry/react to v6.0.4:

Uncaught TypeError: hub.startSession is not a function
    at startSessionTracking (sdk.ts:221)
    at init (sdk.ts:106)
    at Module.init (sdk.ts:18)
    at Module.<anonymous> (index.tsx:22)
    at Module../src/index.tsx (index.tsx:64)
    at __webpack_require__ (bootstrap:856)
    at fn (bootstrap:150)
    at Object.1 (wdyr.js:11)
    at __webpack_require__ (bootstrap:856)
    at checkDeferredModules (bootstrap:45)
    at Array.webpackJsonpCallback [as push] (bootstrap:32)
    at main.chunk.js:1

Debugging this line, hub indeed does not seem to have a startSession function on its prototype.

Disabling autoSessionTracking fixes the issue, but is this expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions