Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on start with patternlab twig-php engine #1504

Closed
guillorrr opened this issue May 4, 2024 · 1 comment
Closed

Stuck on start with patternlab twig-php engine #1504

guillorrr opened this issue May 4, 2024 · 1 comment

Comments

@guillorrr
Copy link

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

> patternlab@1.0.0 start
> npm run serve


> patternlab@1.0.0 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
@heshanlk
Copy link

@guillorrr see #1505

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants