Skip to content

PHP issue when building #43

@cjf339

Description

@cjf339

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).

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