docz: Docz build is not working for 1.0.0-rc.3

Bug Report

The yarn docz:build generates the bundle successfully but it’s broken (there are no components on the sidebar).

Describe the bug I was able to write documentation in dev environment using yarn docz:dev but when I tried to generate a build to host this on a static file server, the rendered didn’t have any components.

A clear and concise description of what the bug is. It looks like this in dev: image

Compared to this (after creating the production build): image

To Reproduce

  1. Write a couple of .mdx file(s)
  2. Check if it’s working – run yarn docz:dev and see it in the browser
  3. Create production build – yarn docz:build
  4. Check the generated bundle:
    cd .docz/dist
    python -m SimpleHTTPServer
    

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository. It’s internal repo, can’t provide a link

Expected behavior Should generate the bundle similar to dev environment. When I switched the docz version to 0.13.7 the same setup worked fine.

Environment

  • OS: OSX 10.14.3
  • yarn version: 1.13.0

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 17 (6 by maintainers)

Most upvoted comments

Hi guys, can you check which version of docz-core are installed? Btw, I’m getting some fixes and today I’ll release a new release candidate version.