patternlab-node icon indicating copy to clipboard operation
patternlab-node copied to clipboard

Is Pattern twig-php is broken and doesn't render any patterns?

Open sridhar614 opened this issue 2 years ago • 0 comments

Hi I am running pattern lab node with version 18, with twig php support on Drupal 10 project, I don't see .html files are creating under public directory and seeing below errors

Warning: Undefined array key "data" in /Users/sridhar/pattern_twig/node_modules/@basalt/twig-renderer/dist/server--async.php on line 115
PHP TwigRenderer Error: The response callback is expected to resolve with an object implementing Psr\Http\Message\ResponseInterface, but rejected with "TypeError" instead.

I am using Pattern Lab Node v6.1 on Mac, with Node v18, using a Gulp | Grunt | Vanilla | Custom Edition.

Expected Behavior

Pattern lab should render the patterns with twig php engine

Actual Behavior

Patterns doesn't render and throws below error

Warning: Undefined array key "data" in /Users/sridhar/pattern_twig/node_modules/@basalt/twig-renderer/dist/server--async.php on line 115
PHP TwigRenderer Error: The response callback is expected to resolve with an object implementing Psr\Http\Message\ResponseInterface, but rejected with "TypeError" instead.
Steps to Reproduce

npm create pattern-lab select twig-php with demo patterns npm run start

sridhar614 avatar May 05 '24 00:05 sridhar614