Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
theskillwithin opened this issue Jan 21, 2021 · 1 comment

Comments

@theskillwithin
Copy link

  • [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
@kamilogorek
Copy link
Contributor

Duplicate of #3184
Incoming patch #3194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants