• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mattvox / react-css-burger / 21
84%

Build:
DEFAULT BRANCH: master
Ran 12 Jul 2020 11:49AM UTC
Jobs 1
Files 2
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
21

Pull #3

travis-ci

GitHub
document is not defined at gatsby build

I'm using `react-css-burger` in my project, but I get the following error when run `gatsby build`. gatsby runs on Node when creating production and node don't know document.
I fixed this on my local project, but please Accept this 'cause I can't deploy my project anywhere! 

```
failed Building static HTML for pages - 3.524s
7:33:26 AM: error "document" is not available during server side rendering.
7:33:26 AM: 
7:33:26 AM:   34 | 
7:33:26 AM:   35 | var Burger = function Burger(props) {
7:33:26 AM: > 36 |   var root = document.documentElement;
7:33:26 AM:      | ^
7:33:26 AM:   37 |   var active = props.active,
7:33:26 AM:   38 |       onClick = props.onClick,
7:33:26 AM:   39 |       burger = props.burger,
7:33:26 AM: 
7:33:26 AM:   WebpackError: ReferenceError: document is not defined
7:33:26 AM:   
7:33:26 AM:   - index.es.js:36 
7:33:26 AM:     node_modules/react-css-burger/dist/index.es.js:36:1
7:33:26 AM:   
7:33:26 AM: 
7:33:26 AM: not finished Generating image thumbnails - 28.441s
```
Pull Request #3:

3 of 6 branches covered (50.0%)

Branch coverage included in aggregate %.

13 of 13 relevant lines covered (100.0%)

2.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21.1 12 Jul 2020 11:49AM UTC 0
84.21
Travis Job 21.1
Source Files on build 21
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #21
  • Pull Request #3
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc