-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Failed to mount: mount path must begin with "/" #485
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? |
When the next release comes out, I'm in great need of this correction? |
Landed on 0.12.16 ✅ |
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: