You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I have an issue setting up this Symfony Storybook build on my Windows 11 machine. I've run all the necessary dependencies, I have PHP 8.3 and my PATH is pointing to the correct path under Environment Variables. I am able to run the Symfony server, but when I run Storybook I keep getting an error:
=> Failed to build the preview
Error: Symfony console failed with exit status 1:
CMD: 'php' 'bin/console' 'debug:container' '--parameter=kernel.project_dir' '--format=json' '-v'
Output:
Error output: ''php'' is not recognized as an internal or external command,
operable program or batch file.
at <anonymous> (.\vendor\sensiolabs\storybook-bundle\storybook\dist\server\framework-preset.js:54:251)
at ChildProcess.exithandler (node:child_process:430:5)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Pipe.<anonymous> (node:net:337:12)
WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
I've tried quite a few fixes:
Created a new Symfony / Storybook repo from scratch.
Reinstalled PHP v8.3 and checked my Environment Variables (under both system and user).
Installed WAMP and ran from that PHP version.
Installed XAMPP and ran from that PHP version.
Uninstalled both WAMP and XAMPP to see if those caused issues.
I also tried the latest PHP (v8.4).
The text was updated successfully, but these errors were encountered:
So after some testing, my team and I figured out the issue.
If you navigate to vendor > sensiolabs > storybook-bundle > storybook > dist > server and find the framework-preset.js file. On line 54, replace the child_process.exec with this code:
Hi there,
I have an issue setting up this Symfony Storybook build on my Windows 11 machine. I've run all the necessary dependencies, I have PHP 8.3 and my PATH is pointing to the correct path under Environment Variables. I am able to run the Symfony server, but when I run Storybook I keep getting an error:
I've tried quite a few fixes:
The text was updated successfully, but these errors were encountered: