You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Pattern Lab Node v6.1.0 on Mac, with Node v20.11.1, using a Vanilla Edition.
Expected Behavior
Twig Templates get rendered without any error messages.
Actual Behavior
An PHP Error is thrown:
Undefined array key "data" in pattern_twig/node_modules/@basalt/twig-renderer/dist/server--async.php on line 115 when trying to render 00-meta/_foot.twig
Steps to Reproduce
Create a patternlab with a lot of patterns.
At some point, the number of patterns will exceed the max_post_size of the @basalt/twig-renderer.
I have analyzed the error a bit. It seems the body payload of the 00-meta/_foot.twig template is too large to be handled by the php @basalt/twig-renderer.
I have opened an issue in their repository as well and will try to submit a fix there. knapsack-cloud/twig-renderer#139
If the @basalt/twig-renderer will not accept the fix, is there a way to reduce the body payload in the _foot.twig template?
The text was updated successfully, but these errors were encountered:
Basalt can't or won't handle more than 64K of requests for the Twig context. Due to the ReactPHP default setting
The context for Twig will get bigger for every e.g. _data/*.json file.
For every pattern there is a "link" key available (to be able to link between patterns).
The more patterns you have, the bigger this object gets and it will be in the "context" too.
My current project would currently use 22K for the "links"
Maybe it would make sense to make the linking feature configurable in pattern-lab?
Personally, i have never used this feature.
Or omit/delete the link data for rendering the _head and _foot?
I am using Pattern Lab Node
v6.1.0
onMac
, with Nodev20.11.1
, using aVanilla
Edition.Expected Behavior
Twig Templates get rendered without any error messages.
Actual Behavior
An PHP Error is thrown:
Undefined array key "data" in pattern_twig/node_modules/@basalt/twig-renderer/dist/server--async.php on line 115
when trying to render00-meta/_foot.twig
Steps to Reproduce
Create a patternlab with a lot of patterns.
At some point, the number of patterns will exceed the max_post_size of the
@basalt/twig-renderer
.I have analyzed the error a bit. It seems the body payload of the
00-meta/_foot.twig
template is too large to be handled by the php@basalt/twig-renderer
.I have opened an issue in their repository as well and will try to submit a fix there. knapsack-cloud/twig-renderer#139
If the
@basalt/twig-renderer
will not accept the fix, is there a way to reduce the body payload in the _foot.twig template?The text was updated successfully, but these errors were encountered: