whoisryosuke / gatsby-documentation-starter

Automatically generate docs for React components using MDX, react-docgen, and GatsbyJS
https://gatsby-documentation-starter.netlify.com/
MIT License
91 stars 13 forks source link

Creating pages from react-docgen #9

Open SukPavel opened 5 years ago

SukPavel commented 5 years ago

Hey, I think there is something wrong in doc in section Creating pages from react-docgen. I'm not using MDX files, so I'm trying to use react-docgen. In example file (gatsby-node.js), in GRAPHQL part there is NO object code {scope}, but in createPage -> componentWithMDXScope part the code is trying to pass this object. Node says: error: UNHANDLER REJECTION.

damonwildercarr commented 3 years ago

I'm having exactly the same issue - any way we could get up update on this? I I get nothing un 'indexof' unhandled errors (at best) after trying to modify your examples to remove the 'scope' error. I'm new to Gatsby so I realize it's probably my lack of knowledge.

damonwildercarr commented 3 years ago

I do see the GraphQL populated correctly however - so that is something.