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.

build just gives empty website

See original GitHub issue

Bug Report

I open /dist/index.html and it’s an empty page

I build the docs with docz build

To Reproduce

  1. Created a doczrc.json
{
  "src": "./mdDocs",
  "typescript": true,
  "themeConfig": {
    "mode": "dark"
  }
}

  1. put a few mdx files in that folder
  2. Run docz dev, server runs can see my documents
  3. Run docz build, go to .docz/dist/index.html and it’s and empty page

Expected behavior

Shouldn’t I see in that index.html the same I see in the devserver?

Environment

  • OS: Ubuntu 18.04.1
  • Node/npm version: v10.7.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jsargeimcommented, Mar 29, 2019

I know this issue is closed - but I can’t see the doczrc.js link that @ilyanoskov posted.

I’m getting the same problem - after the build I’m getting the error. The dev runs fine, but after I build and run live-server it gives me this error.

Live server runs on port 127.0.0.1:8080 - is that where my problem is?

WebSocket connection to 'ws://127.0.0.1:60505/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

1reaction
ilyanoskovcommented, Aug 7, 2018

@hayk94 for Github Pages to work I enabled hashRouter:true. You can see the whole doczrc.js file here: https://github.com/sumup/circuit-ui/blob/docz/doczrc.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blank page after running build on create-react-app
I eventually figured out that the problem was react-router . I was using a BrowserRouter . Switching to a HashRouter solved the problem...
Read more >
Development page blank on first load · Issue #5809 - GitHub
If you open it directly in the browser, you will see an empty page. You can add webfonts, meta tags, or analytics to...
Read more >
Blank page after compile vue application - Fixed - YouTube
Script:https://github.com/alcarazolabs/surflaweb-scripts/blob/main/vue.config.js.
Read more >
IIS Website Just Shows a Blank Page - YouTube
One of the most valuable skills a software developer can gain is the ability to troubleshoot problems. In this video I walk through...
Read more >
Site is live, but sill blank screen (react app) - Support
netlify. Build runs find both in terminal and netlify but crashes once deployed. Deployed and published, but getting either 404 or an empty...
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