question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Development server broken on fresh install

See original GitHub issue

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I’m using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

npm run start is not serving files on a fresh install

Reproducible demo

No response

Steps to reproduce

  1. npx create-docusaurus@latest my-website classic --typescript
  2. cd my-website
  3. npm run start

Expected behavior

I expect to see some ouptut at localhost:3000.

Actual behavior

Navigating to localhost:3000 complains with “This site can’t be reached”.

Must be some problem with the development stack itself: npm run build + npm run serve works as expected.

Your environment

  • node version: v18.3.0
  • npm version: 8.5.5
  • OS: archlinux

Self-service

  • I’d be willing to fix this bug myself.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
Josh-Cenacommented, Jun 9, 2022

@slorber I thought about hosts config issue, but yarn serve being able to work is the interesting part.

1reaction
davidvarela-uscommented, Jun 6, 2022

Working for now with --host 0.0.0.0. Thanks a bunch

Read more comments on GitHub >

github_iconTop Results From Across the Web

React app stuck on "Starting the development server"
Run npm install command before you start the server. Then if it is still not running, please try the second command.
Read more >
How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Error : " Installing plugin @salesforce/lwc-dev-server... ! " when ...
I was trying to install the local Dev Server and when I execute this command it is throwing an error. C:\Users\Desktop\Salesforce> sfdx ...
Read more >
Download MySQL Community Server
Minimal Install Test Suite, 8.0.31, 245.7M. Download. (mysql-test-8.0.31-linux-glibc2.17-x86_64-minimal.tar.xz), MD5: 7a3bdfc0fb03a7f38d266258fcfbbb37 | ...
Read more >
Fix an installed Android app that isn't working - Google Support
Fix an installed Android app that isn't working. Try the following steps if an app ... Sync device with Google servers ... Contact...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found