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

mattvox / react-css-burger / 21 / 1
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 12 Jul 2020 11:49AM UTC
Files 2
Run time 0s
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

12 Jul 2020 11:49AM UTC coverage: 84.211%. First build
21.1

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

Source Files on job 21.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 14
  • Travis Job 21.1
  • fcfd1262 on github
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