Prop tables 😭January 24, 2020 at 4:25pm (Edited 1 month ago)
Hey all i'm having real trouble getting props to display in the props table. My repo is a using gatsby-theme-docz and a gatsby plugin i'm creating. They are both setup using yarn workspaces.
I've read every comment and issue on github and have tried everything to get the prop tables to display.
I'm in control of both the babel/preset-env and tsconfig that generates the package but nothing i seem to work.
If i point docz to my js compiled components they don't work, if i set up docz to look at the tsx components and set typescript to true it doesn't work. if i filter out files i don't work it doesn't work, I've tried numerous methods of imports and exports to no avail and am really stumped now.
oh and i've tried upgrading docz and the theme to use the latest alpha versions
Has anyone else resolved this issue?
Thanks in advance!
January 24, 2020 at 4:33pm
Hey, any chance you can share more about your project setup. It's a yarn workspace, is docz installed at the root or inside a package ? Any minimal repro you can provide or help create ?
There's also 3 examples for using docz and the Props component with workspaces, maybe they can be helpful : https://github.com/doczjs/docz/tree/master/examples/monorepo https://github.com/doczjs/docz/tree/master/examples/monorepo-separate-docs https://github.com/doczjs/docz/tree/master/examples/monorepo-package
Hey Rankan! i just tweeted you, thanks for the message. I probably can't create a minimal repro but the branch i've been working on is here: https://github.com/PaulieScanlon/gatsby-mdx-embed/tree/feat/babel-config
Hmmm, yeah i guess it's not a bad idea. I have a few gatsby plugin projects and they are all setup the same way with yarn workspaces. This is the only one where i've needed to really document stuff though. If you're up for making some changes i'm all for it, i've run out of ideas to make this work with my current setup so probably time for a new approach!
Got an even weirder bug now... i got it working using gatsby develop but when i deploy or build locally i get this. https://5e2b78f7994da9000a916bb2--gatsby-mdx-embed.netlify.com/src-components-flickr no prop tables but if you refresh a few times you'll see the prop table does populate for a second then it goes blank... any ideas?