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

Stuck on start with patternlab twig-php engine

Open guillorrr opened this issue 2 years ago • 0 comments

I am using Pattern Lab Node v6.1.0 on Ubuntu 20.01.6 LTS, with Node v18.20.2, and using the twig-php pattern engine. I also tried with node 16 y 20.

I'm having trouble on the init start.

npm run start

> [email protected] start
> npm run serve


> [email protected] serve
> patternlab serve --config ./patternlab-config.json

⊙ patternlab → serve: Serving your files …
Pattern Lab Node v6.1.0
Pattern Engine handlebars / package @pattern-lab/engine-handlebars: good to go
Pattern Engine twig-php / package @pattern-lab/engine-twig-php: good to go
Pattern Engine mustache / package @pattern-lab/engine-mustache: good to go
PHP Parse error:  syntax error, unexpected '|', expecting '{' in /patternlab/node_modules/@basalt/twig-renderer/dist/server--async.php on line 62
Expected Behavior

start patternlab

Actual Behavior

stuck on init

Steps to Reproduce
npm create pattern-lab
? Please specify a directory for your Pattern Lab project. patternlab
? What templating language do you want to use with Pattern Lab? Twig (PHP)
? What initial patterns do you want included in your project? Twig (PHP) demo patterns (full demo website and patterns)
? Are you happy with your choices? (Hit enter for YES)? Yes
✔ ⊙ patternlab → Installed edition: @pattern-lab/edition-twig
✔ ⊙ patternlab → Installed starterkit: @pattern-lab/starterkit-twig-demo
✔ ⊙ patternlab → Yay ☺. Pattern Lab Node was successfully initialized in patternlab

guillorrr avatar May 04 '24 00:05 guillorrr