Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels