-
Notifications
You must be signed in to change notification settings - Fork 1k
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
yarn rw dev
only seems to work on Mac
#475
Comments
yarn rw dev
only seems to work on MAcyarn rw dev
only seems to work on Mac
In my Vagrant VM, I see:
I haven't figured out yet whether that looks good or not or what the problem is. It's strange to me that http://localhost:8911/graphql loads fine in my Win 10 (host) browser but http://localhost:8910/ does not. |
Because of 65377da (which I found at #216 (comment)), I added But when I browsed to http://0.0.0.0:8910/ and http://0.0.0.0:8911/graphql, neither loaded. I will keep searching other issues and forums trying to figure this out. I'd appreciate any tips if you have a moment. Thanks. |
In In my Ubuntu VM, I ran So I ran I don't fully understand this, but I'm happy that I can continue with the tutorial. |
But now my problem is that hot reloading doesn't work (in either case). Editing BlogPostsCell.js (https://redwoodjs.com/tutorial/cells) has no effect until I cancel the process in the terminal and run Hot reloading is obviously a must. So I still haven't figured out how to set up my environment properly. |
@ryancwalsh I'm excited about your persistence here! But bummed you keep running into errors. Nice work figuring out the IP/Ports for Vagrant. Unfortunately, I was not able to duplicate the error with The error you're hitting, But before you do that, try deleting the I think you're going to continue to run into challenges with the Vagrant setup. If Powershell isn't working, could you either try GitBash or Bash on Windows? |
@ryancwalsh I think virtualbox has an issue with watching files, you could try modifying the webpack configuration and setting it to poll: https://redwoodjs.com/guides/webpack-config & https://webpack.js.org/configuration/watch/#watchoptions |
@thedavidprice @peterp Thank you so much for your quick responses. Very encouraging! This did not seem to have any effect (when running via Vagrant):
And then I noticed https://webpack.js.org/configuration/watch/#watchoptionspoll says:
So I guess it's not expected to work since I was using VirtualBox. In Git Bash (instead of VirtualBox), I ran
Which looks like the problem I had in PowerShell. So then I figured you were probably right about
Then I run:
Then I remembered to remove
I will try restarting my Windows machine entirely. |
Hot reloading works after restarting Windows! I guess I should have used straight Git Bash all along instead of Git Bash ssh into Vagrant. Thanks! |
After downgrading my Node, I'm able to get
yarn create redwood-app ./redwoodblog
to work.But unfortunately another early step in the tutorial is not working for me:
yarn rw dev
. I've tried in 3 different environments:On Windows 10 PowerShell as Admin:
In Homestead Vagrant Ubuntu VirtualBox VM (on Win 10 host), the command does not error:
But it does not open the browser on my host machine, and if I manually open the browser and visit http://localhost:8910/, I see:
However, http://localhost:8911/graphql loads fine, which means port forwarding is working. So I don't know what the problem is.
I've also tried changing the port in
redwood.toml
in case there might have been conflicts, but it didn't help.On MacOS 10.14.6,
yarn rw dev
works as expected (opens the browser to the appropriate page and shows the default page). But I'd love not to have to buy a Mac to use Redwood.Can you see anything I'm doing wrong? Thanks.
P.S. I tried
yarn upgrade
because of #474 but it didn't help.The text was updated successfully, but these errors were encountered: