question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Depending on the Gatsby version, the Netlify CLI UI breaks (long standing issue)

See original GitHub issue

Description

I’ve been having this UI issue for so long now, I posted the issue in Netlify’s CLI github issues list as well. Please close if this feels unrelated to Gatsby, and is solely Netlify’s problem to fix.

Issue: The Netlify CLI UI get’s cut off by an “In Progress” bar that just sits there even though it’s completed, cutting off the green “Server now ready on localhost:8888” section.

This issue doesn’t happen when running the gatsby develop command, but does happen when running netlify dev, which in turn runs gatsby develop. I’m posting here in case anyone here might have some insights into the UI issue based on the two versions of Gatsby I outline below.

I decided to get to the bottom of it and figure out when this this issue starts… It doesn’t happen on gatsby@2.15.17, but it does happen on gatsby@2.16.0 and later. But gatsby@2.16.0 is the very specific moment things break.


Here’s a screenshot on gatsby@2.15.17, running netlify dev when things look normal:

Hyper 2020-02-06 at 16 37 19@2x Hyper 2020-02-06 at 16 37 25@2x

Here’s a screenshot on gatsby@2.16.0, running netlify dev when things look broken:

Hyper 2020-02-06 at 16 57 33@2x

Environment

  System:
    OS: macOS 10.15.3
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 13.6.0 - ~/.nvm/versions/node/v13.6.0/bin/node
    npm: 6.13.4 - ~/.nvm/versions/node/v13.6.0/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 79.0.3945.130
    Safari: 13.0.5
  npmPackages:
    gatsby: ^2.16.0 => 2.16.0
    gatsby-plugin-catch-links: ^2.1.25 => 2.1.25
    gatsby-plugin-manifest: ^2.2.41 => 2.2.41
    gatsby-plugin-offline: ^3.0.34 => 3.0.34
    gatsby-plugin-react-helmet: ^3.1.22 => 3.1.22
    gatsby-plugin-sass: ^2.1.28 => 2.1.28
    gatsby-plugin-sharp: ^2.4.5 => 2.4.5
    gatsby-remark-images: ^3.1.44 => 3.1.44
    gatsby-remark-relative-images: ^0.2.3 => 0.2.3
    gatsby-source-contentful: ^2.1.85 => 2.1.85
    gatsby-source-filesystem: ^2.1.48 => 2.1.48
    gatsby-transformer-remark: ^2.6.50 => 2.6.50
    gatsby-transformer-sharp: ^2.3.14 => 2.3.14
  npmGlobalPackages:
    gatsby-cli: 2.8.27
Gatsby CLI version: 2.8.27
Gatsby version: 2.16.0
  Note: this is the Gatsby version for the site at: /Users/tris/Sites/tris/tris-gatsby

netlify-cli/2.31.0 darwin-x64 node-v13.6.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
erquhartcommented, Feb 7, 2020

A bit of research:

1reaction
jlengstorfcommented, Feb 7, 2020

I posted this on https://github.com/netlify/cli/issues/698 as well, but just to surface this in both places:

this is happening on the repo I’m using for my Frontend Masters “Introduction to the JAMstack” course, which is scheduled to be released soon

if we could get this fixed before that goes live, that would probably help us avoid a lot of confusion

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build troubleshooting tips - Netlify Docs
This article provides troubleshooting tips for failing builds in Netlify's build service. In case your build fails on Netlify, first make sure it...
Read more >
How to fix broken CSS on Netlify when using Gatsby?
The CSS injection order when doing gatsby build is a place to start. Material UI styles can get messed up when they are...
Read more >
Troubleshooting Common Errors - Gatsby
Problems with the cache · Errors with common plugin configurations. Installing plugins for styling results in Generating SSR bundle failed · Errors in...
Read more >
Gatsby Changelog | 5.3.0
When using the Slices Optimization on Gatsby Cloud, build time decreases by 78% for code updates compared to No Slices on Gatsby Cloud....
Read more >
netlify-cli - npm
Netlify command line tool. Latest version: 12.5.0, last published: 5 days ago. Start using netlify-cli in your project by running `npm i ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found