[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-cannot-stat-app-package-lock-json-no-such":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":18,"titleAccent":6,"lead":19,"facts":22,"why":37,"log":42,"fix":74,"engine":83,"related":90,"pitch":114},"laravel","cannot-stat-app-package-lock-json-no-such","Vite install fails on a Yarn workspace monorepo","Laravel, Nextjs, Vite",{"description":9},"Learn what causes Vite install fails on a Yarn workspace monorepo, how PanelAlpha Engine responds to it during deployment.",[11,14,17],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":15,"href":16},"Laravel","\u002Fapps\u002Fstacks\u002Flaravel",{"label":6},"",[20],{"text":21},"Error recorded 22 times in PanelAlpha Engine deploys on Laravel, Nextjs, Vite. The deploy log below is the recorded failure output.",[23,28,31,33],{"label":24,"value":25,"tone":26,"tooltip":27},"Type","Error","err","An 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.",{"label":29,"value":30},"Seen","22 times · 6 variants",{"label":32,"value":7},"Where",{"label":34,"value":35,"tooltip":36},"Status","Observed","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":38,"body":39},"Why it happens",[40],{"text":41},"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.",{"heading":43,"block":44},"What the log looks like",{"header":45,"lines":46},"Deploy log",[47,51,55,58,62,66,70],{"segments":48},[49],{"text":50},"cp: cannot stat '\u002Fapp\u002Fpackage-lock.json': No such file or directory",{"segments":52},[53],{"text":54},"cp: cannot stat '\u002Fapp\u002Fpnpm-lock.yaml': No such file or directory",{"segments":56,"blank":57},[],true,{"segments":59},[60],{"text":61},"YN0066: typescript: ENOENT: no such file or directory, lstat '\u002Fnode_modules\u002Ftypescript\u002Flib\u002F_tsc.js'",{"segments":63},[64],{"text":65},"YN0005: package build scripts have been explicitly disabled through configuration",{"segments":67},[68],{"text":69},"YN0007: workspace packages must be built",{"segments":71},[72],{"text":73},"Browserslist: browsers data (caniuse-lite) is 7 months old",{"heading":75,"steps":76,"block":80},"How to fix it",[77],[78],{"text":79},"Confirm that Vite is the correct strategy for this repository; it appears to be a monorepo with Rust and Docker components as well. Configure the deployment to use the repository’s supported Yarn workflow and build from the correct workspace. Ensure required dependency build scripts are allowed, then retry. Treat the Browserslist message as a warning, not the primary failure.",{"header":81,"lines":82},"Fix by hand",[],{"heading":84,"body":85,"block":88},"How PanelAlpha Engine solves it",[86],{"text":87},"The Vite strategy should recognize Yarn workspaces and avoid treating absent npm or pnpm lockfiles as install errors. Capture the install command and exit status, distinguish warnings from fatal failures, and validate workspace build-script permissions before starting the build.",{"header":18,"lines":89},[],{"heading":91,"items":92},"Apps affected",[93,97,100,104,107,111],{"title":94,"badge":95,"tone":26,"href":96},"AFFiNE","8 occurrences","\u002Fapps\u002Ftoeverything\u002Faffine",{"title":98,"badge":95,"tone":26,"href":99},"zitadel","\u002Fapps\u002Fzitadel\u002Fzitadel",{"title":101,"badge":102,"tone":26,"href":103},"agewasm","2 occurrences","\u002Fapps\u002Fmarinx\u002Fagewasm",{"title":105,"badge":102,"tone":26,"href":106},"univer-workspace","\u002Fapps\u002Fdream-num\u002Funiver-workspace",{"title":108,"badge":109,"tone":26,"href":110},"fluidd","1 occurrence","\u002Fapps\u002Ffluidd-core\u002Ffluidd",{"title":112,"badge":109,"tone":26,"href":113},"koel\u002Fkoel","\u002Fapps\u002Fkoel\u002Fkoel",{"heading":115,"body":116,"footNote":117,"docsLabel":118,"docsHref":119},"Try PanelAlpha Engine yourself.","The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.","Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]