Skip to content

Examples are not published #423

@GrtDev

Description

@GrtDev

Let me start off with that I think this is a great project and I'm really enjoying it so far! (:

I have been using it for some time now, but I've run into a bug I have some trouble figuring out what is going wrong.

I have a config that seems to be working just fine. The server and build commands are working and everything seems to be build correctly. That is until I try to build the styleguide inside a node docker container. I'm using a gitlab runner for building the styleguide and publishing it to a S3 bucket.
The files that it is outputting seem to be fine, I don't get any error or warnings. It can find all my components and sections. The only thing that is missing are the examples.

When inspecting the styleguide with the React devtools 2 things stand out. First, the ReactComponent holding my Component has a prop hasExamples:false. Second the ComponentRenderer does contains an example object with a prop type:y.

I suspect something might go wrong with some filepath names.

Now I know this is not a whole lot to go on. Nor do I expect this to be solved very easily. Mostly I'm looking for some pointers for things I could try or look at to figure out where it is going wrong. I will continue to investigate later when I have more time. If I figure it out I'm happy to create a PR with a fix.

Thanks in advance for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions