Closed chunksnbits closed 4 years ago
Hey @chunksnbits ,
Since you have mdx files in different packages did you consider putting docz at the root of your monorepo and using it as a cli as shown here ?
If that doesn't help, could you provide a repro to make debugging your problem easier ?
Cheers !
Thanks for the reply.
On the project I am working on docz is an appendix on an already existing gatsby project.
So using the gatsby-plugin-docz
package seemed the most natural choice to me.
But I will look deeper into the example provided over the next couple of days to see if I can reuse anything or otherwise provide a minimal example to reproduce.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bug Report
Describe the bug I am working on a lerna monorepo project that holds an existing gatsby project (called
website
) and a library style project calleddesign-system
. In the file system this looks like:NOTE The project is set up using
gatsby-theme-docz
. But some quick test using the cli yielded the same results.The page-header uses the button component (via a library style import in subcomponent called
subnavigation.tsx
, i.e.ímport { Button } from '@namespce/desgin-system
)`.Both page-header and button define a markdown file using mdx format (including
playground
andprops
helper fromdocz
)Whever I start the gatsby application (website) the build gets stuck on
In progress
I get the following error:The
website
gatsby server starts as expected, if I delete thebutton.md
file. In that case thepage-header.mdx
is output as expected.I tried different settings in docz config, e.g.,
src: './src'
filterComponents
settings, including one that returned just[]
, i.e., filtered out all filespropsParser: false
docgenConfig: { searchPath: '%absolute%/package/website/src'}
All to no avail. The error is consisten regardless of my settings.
UPDATE If i move the
button.mdx
into thewebsite
package (button.tsx
stays withindesign-system
package), I can start the server again.To Reproduce This is the file content for buth mdx files:
button.md
page-header.mdx
Expected behavior
Environment
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.
Would really love to get this working. Any help is much appreciated!