-
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
run Gatsby through WSL2 #15163
Comments
So for now my suggestion was to expose it out to the network with |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
I'm marking this stale. If people aren't running into this too often, this isn't a pressing issue. We can deal with it again when it pops up a bit more or when wsl2 becomes mainstream. |
I think this has been updated in a newer insiders release of WSL 2 as discussed here: https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-insiders-preview-build-18945/ @NickyMeuleman, can you possibly download this new version and verify that this issue has been resolved? |
Ooh, that sounds very exciting! Edit: been playing around with this, and it doesn't seem to work across the board. When connecting I get the (pinging @lannonbr, since I edited this reply) |
I'm unsure this is something we can address as of now. WSL 2 is still in beta and might be a windows issue rather than a gatsby issue. |
Alright yeah that's fine. Thanks anyway for the testing @NickyMeuleman |
I will close this now and keep it on file so if this issue persists when WSL2 is stable this fall, then we can look into it. |
Alright, reopening the issue |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
I'm having trouble running This is purely a guess but from what I've read of the documentation on the topic, devcert is adding the certificate on the wsl side of things which means that when opening the site through a browser (on the windows side) the server is just refusing to connect. |
Had trouble running
gatsby develop
through WSL2 (Windows subsystem for Linux v2)context
WSL2 is available, it is still in the early stages.
https://devblogs.microsoft.com/commandline/wsl-2-is-now-available-in-windows-insiders/
https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes
Steps to reproduce
Run
gatsby develop
from WSL2.Actual result
Browser reports
connection refused
(Temporary) solution
ip addr | grep eth0
and copying the ip after
inet
gatsby develop
(8000)Thanks to @lannonbr on the Gatsby discord for the solution!
The WSL2 team will probably change how connecting to localhost works in the future, so this solution should be temporary.
The text was updated successfully, but these errors were encountered: