-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
TypeError: Cannot read property 'address' of null #2960
Comments
What version of Gatsby? I just made a PR with the develop command so could have added a bug #2951 |
I have this error too. I am trying out the gatsby-starter-blog and it seemed fine until I started to add my own images to one of the sample .md files. |
I am also getting this when starting tutorial-part-three as part of the tutorial! NPM version 4.2.0 |
Could y'all try 1.9.118? |
Thanks @KyleAMathews, |
So I managed to reproduce this by dropping down to [email protected] but then managed to "fix" it by opening up It seems to be some sort of timing bug? E.g. the server hasn't finished starting yet. |
@KyleAMathews - That seemed to resolve the issue when I'm now on 1.9.118. However, going back to a different project I had (not the tutorial-part-three), it seems none of my images are able to load. They get the following error in the web console:
|
Perhaps still something to do with the My dev site is located at |
I experienced this issue for the first time today and resolved it by updating to |
Just tested with |
Yep. Can repro. Interestingly, @SachaG thoughts? |
@rdela is hot module reloading also broken for you? |
Error seems to be specific to passing
as with (Checking on HMR.) |
@SachaG |
@SachaG |
@SachaG @KyleAMathews wait, I got it to break. Which port I set, Console error and warning make me think there is confusion between localhost and 0.0.0.0 happening. Console output (
then then Warning
Only failure to build I have is with passing (Apologies for mixing up 8000 and 8888 so many times, I ran the commands with several variations and was copying from them as I wrote this.) |
Could be CORS related too, or both? On the
|
Yeah CORS looking like the culprit #2956 (comment) |
Also seeing this. Steps:
windows 10 x64 |
Ok so seems http://0.0.0.0:8000/ is only IP working with HMR |
@SachaG can you try hitting http://0.0.0.0:8000/ instead of http://localhost:8000/ or your local IP and confirm if HMR works for you? |
I ran more tests specifying Same for |
error exactly like |
Since #2951 6ddcc6d#diff-dfccf547543bb987b0ff0a7281348933R17 Then in 6ddcc6d#diff-346c3005d97c1ca0b5efb170af1b43f6R258 where
not 6ddcc6d#diff-346c3005d97c1ca0b5efb170af1b43f6R261 so we never hit the 6ddcc6d#diff-346c3005d97c1ca0b5efb170af1b43f6R323 Or maybe |
Opened #2970 swapping |
HMR does work on |
|
Thanks everyone for all your efforts to try and rectify this issue. Swapping '0.0.0.0' in for 'localhost' as prettyHost didn't make any difference for me. I still get the error message. Perhaps because I'm on Windows. |
We have the bug also, latest version of Gatsby and CLI. |
Thought I remembered Windows having to do with the change. Seems using Means we need to figure out where/why @artfaktor, @sebastienfi, so on Windows you can both Edit: remove en dash add back auto-converted hypens |
This seems especially relevant #2837 (comment) |
Hi everyone please try latest release
And see #2983 (comment) and below about Chrome @artfaktor, @sebastienfi if either of you can try on Windows that would be killer, otherwise hope to get to it late tonight or tomorrow, thanks! |
@rdela I can confirm the that this update fixed the CORS error. Thanks! |
@rdela updating gatsby-cli has resolved this issue for me too. Thank you. |
@benforshey @artfaktor thank you both for testing! @SachaG (+ others on Mac) are you seeing |
With the latest version atm of Gatsby, Gatsby-cli, running My 2 cents on this : |
This problem still exists with ping @KyleAMathews! |
@yeskunall what version of gatsby? (not the cli) |
@KyleAMathews 1.9.118! |
Just tried a site with 1.9.128 and couldn't reproduce |
You're absolutely right. I guess it's my fault for not looking at the whole thread more carefully. It does work with |
That'd be great! We need to automate the upgrading of starters.
…On Wed, Dec 6, 2017, 7:25 PM Kunall Banerjee ***@***.***> wrote:
You're absolutely right. I guess it's my fault for not looking at the
whole thread more carefully. It does work with ***@***.*** I'd like to
point out however, that gatsby-starter-blog is still using v1.9.118, which
is why I got that error above. If you'd like, I can make a PR to fix that
issue over at gatsbyjs/gatsby-starter-blog!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2960 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEVh8zwTfhzs-WxCHwmgscwsreiIZYtks5s91qogaJpZM4QjOgw>
.
|
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
I've started getting this error when running
gatsby develop
:I'm on Mac OS High Sierra with Node 8.9.1. I first got the error while using Node 9 so I downgraded and the error went away, but I noticed that hot module reloading wasn't working. From reading #864 I got the idea to try
gatsby develop --host localhost --port 8000
instead ofgatsby develop
, but then that triggered theaddress
error again.I'm not sure what's going on exactly… Could it be related to my own config somehow?
The text was updated successfully, but these errors were encountered: