Skip to content
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

localhost:3000 wont work #8

Open
seabiscuit90 opened this issue Aug 11, 2022 · 1 comment
Open

localhost:3000 wont work #8

seabiscuit90 opened this issue Aug 11, 2022 · 1 comment

Comments

@seabiscuit90
Copy link

Hi Brad,

Creating an issue here so it helps others as well. I basically have Windows 11 running with WSL2 enabled and Ubuntu LTS installed. I have the WP site running with Localwp. However, when I run the command yarn run preview I see the following but the http://localhost:3000 seems to have stuck. It wouldn't load anything on the browser. Just keeps spinning.

I personally think this issue is related to WSL2.

Do you have any insights on this?

@iecoding
Copy link

Hello, for me with WSL2 the first time everything works as expected. But something happend after reeboting.

now localhost:3000 is stuck
and for some reason /build/index.css file dissapear

What worked for me?
change ip address from 127.0.0.1 to virtual machine ip on /etc/hosts file

example on WSL2:

$ sudo vim /etc/hosts
172.31.62.144 localhost

and then restart the service

$ sudo service network-manager restart

then excute on theme's folder root: $ npm run preview

Finally open your borwser and visit localhost:3000

Browsersync: connected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants