Skip to content

gatsby @sentry/browser There was an error compiling the html.js component for the development server #3193

Description

@theskillwithin
  • [6.0.1] @sentry/browser

Description

after upgrading from 5.29.2 to 6.0.1

 ERROR There was an error compiling the html.js component for the development server.
See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html ReferenceError:
document is not defined
185 | * but, as always, it's not available in the IE10-11. Thanks IE.
186 | */
> 187 | var loadResolved = document.readyState === 'complete';
| ^
188 | var fcpResolved = false;
189 | var possiblyEndSession = function () {
190 | if (fcpResolved && loadResolved) {
WebpackError: ReferenceError: document is not defined
- sdk.js:187 node_modules/@sentry/browser/esm/sdk.js:187:1
- sdk.js:100 node_modules/@sentry/browser/esm/sdk.js:100:1
- create-store.js:9 src/store/create-store.js:9:13
- wrap-with-provider.js:1 src/store/wrap-with-provider.js:1:1
- gatsby-ssr.js:1 gatsby-ssr.js:1:1
not finished Building development bundle - 5.991s

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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