Laravel install fails during frontend asset compilation
Error recorded 1 times in PanelAlpha Engine deploys on Laravel. 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.
Seen1 times
WhereLaravel
StatusFixed (2.1.0)Fixed in PanelAlpha Engine 2.1.0. The error is resolved on our side, so you will not run into it anymore.
Why it happens
The PHP dependencies complete successfully, but the install fails while compiling frontend assets in resources/assets/v2. The captured output ends during the npm postinstall hook, where patch-package applies an admin-lte patch. The deprecation warnings and patch version-mismatch warning are not, by themselves, proof of the failure; the final error is missing from the telemetry.
What the log looks like
Deploy log
[panelalpha] build: assetsCompiling frontend assets on host, in the resources/assets/v2 workspacenpm warn deprecated [email protected]: Vue 2 has reached EOL.> postinstall> patch-package --error-on-failpatch-package 8.0.1Applying patches...[email protected] ✔Warning: patch-package detected a patch file version mismatchDon't worry! This is probably fine. The patch was still appliedsuccessfully.[remaining failure output not captured]