[Request for help] pattern not rendered correctly in some unknown condition
Patternlab is a project with which one can implement a design system. It supports pluggable templating engines. An engine in PatternLab speak is the adaptor which links their code base to the real templating engine. The twig engine is one of them.
A few weeks back, I gave this engine an update by putting Twing underneath.
Once this got released, a few people started working with this refreshed integration. Out of it came the following issue report: https://github.com/pattern-lab/patternlab-node/issues/1201 The report has a link to an example project just before the screenshot. You can download and try it for a reproducable case.
For more than 2 weeks now, I have been trying to find where it goes wrong, but debugging an inherent async setup is hard. So far I failed to find the cause, but it has to be either in Twing itself or in how I integrate Twing in the adaptor (engine-twig). None of the other Patternlab engines have this problem (Mustache, Handlebars). Sidenote: I would welcome async/await in the Twing codebase for the sole reason of debugging.
I would be grateful if anyone from the twing team could try out the sample project and have a look at how I integrate Twing. Any feedback would be welcome to find this issue.
Will have a look and let you know.
@ericmorand bumping to twing 5.0.1 seems to have fixed the problem for me. I asked the creator of the original issue for a confirmation.
Given that PatternLab triggers a sequence of rendering promises, I assume I was bitten by #497. Is that a reasonable assumption?