This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Failed to mount: mount path must begin with "/" #485
Labels
good first issue
Good for newcomers
Comments
I tried this fresh setup using create-react-app and docz and everything worked fine, I think that this can be a windows problem 😕 |
Thanks, I suspected as much! I'll have to take a crack at it this weekend. 😄 |
Hi, I've run into this issue as well. I've narrowed it down to https://github.com/pedronauck/docz/blob/master/packages/docz-core/src/webpack/devserver.ts#L46 . The fix is simple: just use I can submit a PR if you'd like? |
patricksevat
added a commit
to patricksevat/docz
that referenced
this issue
Dec 6, 2018
patricksevat
added a commit
to patricksevat/docz
that referenced
this issue
Dec 6, 2018
When the next release comes out, I'm in great need of this correction? |
Landed on 0.12.16 ✅ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Describe the bug
yarn docz:dev
on a fresh create-react-app fails with the error:To Reproduce
Reproduction Repository
(Optional: 1. Generate a fresh create-react-app and install Docz as usual)
2. Run
yarn docz:dev
3. See error
Expected behavior
Docz should successfully compile.
Environment
Additional context/Screenshots
Docz provides koa-mount with the path
\public
; koa-mount only accepts paths that begin with/
. Hardcoding the path as/public
inkoa-mount/index.js
circumvents this issue (please forgive me for this sin).The text was updated successfully, but these errors were encountered: