sentry-javascript: Some browser integrations does not respect the Integration#setupOnce signature

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Ohhh, I know that the problem is, Integrations only work if there is a currentHub, we have to add this to the documentation.

Please make sure you do the following:

import { makeMain } from "@sentry/hub";

// YOUR CODE
// after you have the hub instance

makeMain(hub);

Hope this fixes it. Edit: You probably have to install @sentry/hub