-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 docusaurus start ,http://localhost:3000/ is not available #4717
Comments
Hi @lxchinesszz, please use the bug report template. It will save the maintainers to develop this awesome projects :) |
This may not be a bug, I don't know why I usually just go to: http://localhost:3000/ after NPM start to debug. But I recently found out that when I typed NPM start, the Docusaurus website was running. But you cannot visit http://localhost:3000. At the same time, there is no error message. |
If not, your issue is likely a duplicate of #4713. I am experiencing the same issue and let's wait for a response from the dev :P |
Can you try on alpha 74 and see if it works better? |
@lxchinesszz I really need a repro to be able to help you on this, and showing logs/screenshots won't be enough in this case. If the repo is private, you can give me private access on Github. Are you using MDX imports at the top of your markdown files? (could be related to #4726) Is this the repo? https://github.com/lxchinesszz/scm-website (it does not look like, as your screenshot show "ddd-website"). I suggest trying alpha74 to see if this is a bug in latest release (new Webpack 5 support, more risky to break things) Also you'd rather use Node 12 or 14 instead of Node 13. Any particularity to mention about your site? Does it have custom plugins, custom weback config or whatever? |
same problem try to run the default template
Node version
Tried to downgrade to alpha.74 but get same issue. |
I'll need more context abut your env please, because using same node/commands works for me (latest MacOS). Can those reporting this issue try both alpha 75 and alpha 74? (fix the version, don't use ^)
|
More details, I don't think it is related to webpack as I have the same problem with alpha.74 and alpha.75 , website never show up I'm on Windows 10 with WSL 2 . Ubuntu 18.04 With alpha.75 :
With alpha.74 (fixed)
Gonna try right now directly on Ubuntu 18.04 (not from Windows) to see what happen |
Ok, it works with Ubuntu 18.04 , Node v12.18.1 Will try with v12.19.0 to see if it comes from that |
Works also with Ubuntu 18.04 , node v12.19.0 , so problem is with WSL 2 on windows.. will see if I can try a few more things.. |
Some update on this, I'm sorry I reported the issue in the first place, this seems unrelated to docusaurus , since yesterday I can't access anything running on WSL2 .. I'm looking ways to fix it, but you can close this I guess, exploring microsoft/WSL#5298 , will report here once I find a fix for future googlers 😉 |
For anyone landing here, here is the fix: https://dev.to/wetterkrank/wsl2-localhost-3000-issue-191b |
I'm very sorry for replying to your message so late. After reading the following reply from Tdurand, I think what he said is right. It probably had nothing to do with the docusaurs version, because I also found that sometimes he was successful and sometimes he waited. Unable to access port 3000. But I think if this was the case docusaurs could give a more intuitive and friendly indication. Would it be better? What do you think? |
Thanks @tdurand , going to close then @lxchinesszz are you also on Windows or using WSL? |
I have the same problem on Mac Big Sur X1, please reopen it. |
Suggest you to change a port to run, I solve like this. |
@lxchinesszz I changed the port but still got error, raised a new issue: #4842 |
http://localhost:3000/ is not available
➜ node -v
v13.14.0
@docusaurus/init@2.0.0-alpha.75
The text was updated successfully, but these errors were encountered: