Vite install fails on a Yarn workspace monorepo
Error recorded 22 times in PanelAlpha Engine deploys on Laravel, Nextjs, Vite. 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.
Seen22 times · 6 variants
WhereLaravel, Nextjs, Vite
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The Vite strategy detected a large Yarn workspace, but the project does not contain the package-lock.json or pnpm-lock.yaml files the install step attempted to copy. Dependency linking also reported a missing TypeScript file and several disabled package build scripts. The telemetry does not show the final command or exit reason, so the exact blocking error is unclear.
What the log looks like
Deploy log
cp: cannot stat '/app/package-lock.json': No such file or directorycp: cannot stat '/app/pnpm-lock.yaml': No such file or directoryYN0066: typescript: ENOENT: no such file or directory, lstat '/node_modules/typescript/lib/_tsc.js'YN0005: package build scripts have been explicitly disabled through configurationYN0007: workspace packages must be builtBrowserslist: browsers data (caniuse-lite) is 7 months old