Skip to content

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

Closed
@sridhar614

Description

@sridhar614

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions