PHP frontend build calls Composer from a Node-only build container
Error recorded 3 times in PanelAlpha Engine deploys on Php. The deploy log below is the recorded failure output.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen3 times · 2 variants
WherePhp
StatusResolve Ready (2.1.1)Our team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The project's npm scripts (or gulp tasks) run composer, but the engine runs the frontend build in a Node image that has no Composer.
What the log looks like
Deploy log
[18:59:09] 'update-licenses' errored after 24 ms[18:59:09] Error: Command `composer licenses --format=json --no-dev > public/license/composer.LICENSES` exited with code 127at ChildProcess.handleSubShellExit (/app/node_modules/gulp-run/command.js:166:13)at Object.onceWrapper (node:events:634:26)at ChildProcess.emit (node:events:519:28)at ChildProcess.emit (node:domain:552:15)at ChildProcess._handle.onexit (node:internal/child_process:293:12)at Process.callbackTrampoline (node:internal/async_hooks:130:17)[18:59:09] 'default' errored after 37 ms