{"record":{"id":"6396611ccb3c69d7","repo":"quasarframework/quasar","slug":"failed-to-run-capacitor-assets-please-do-it-manu","errorCode":null,"errorMessage":"Failed to run @capacitor/assets. Please do it manually.","messagePattern":"Failed to run @capacitor/assets\\. Please do it manually\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"icongenie/lib/mount/mount-capacitor.js","lineNumber":71,"sourceCode":"      warn()\n      warn('Failed to install @capacitor/splash-screen. Please do it manually.')\n    }\n  }\n\n  return true\n}\n\nexport async function mountCapacitor() {\n  const hasInstalled = await installCapacitorAssets()\n  if (!hasInstalled) return\n\n  const success = await spawnSync('npx', ['@capacitor/assets', 'generate'], {\n    cwd: srcCapacitorDir\n  })\n\n  if (!success) {\n    warn()\n    warn('Failed to run @capacitor/assets. Please do it manually.')\n    console.log(' -> /src-capacitor: $ npx @capacitor/assets generate\\n')\n  }\n}\n","sourceCodeStart":53,"sourceCodeEnd":75,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/icongenie/lib/mount/mount-capacitor.js#L53-L75","documentation":"After installing @capacitor/assets, mountCapacitor runs `npx @capacitor/assets generate` inside /src-capacitor to produce icons and splash screens. A non-zero exit of that spawned command triggers this warning with a hint of the command to run manually. The assets are simply not generated.","triggerScenarios":"npx @capacitor/assets generate fails in srcCapacitorDir: npx cannot fetch the package (offline), assets config is invalid (logo files missing), or the generator itself errors on the provided images.","commonSituations":"Missing or misnamed source logo files in the assets directory; network-restricted npx; incompatible @capacitor/assets version with the installed Capacitor CLI.","solutions":["Run the command manually in /src-capacitor: `npx @capacitor/assets generate` to see the underlying error.","Ensure source images (e.g. logo.png, splash.png) exist and match the documented sizes/format.","Install @capacitor/assets locally so npx doesn't need to fetch it, then re-run icongenie."],"exampleFix":"# before: automatic run failed\ncd src-capacitor\nnpx @capacitor/assets generate  # inspect real error, fix assets, rerun","handlingStrategy":"validation","validationCode":"import { existsSync } from 'node:fs';\nif (!existsSync('src-capacitor/assets/logo.png')) {\n  console.log('Provide source logo.png (and splash.png) in src-capacitor/assets before generating');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run `npx @capacitor/assets generate` manually once to surface the underlying error.","Ensure source images exist with correct names and dimensions per @capacitor/assets docs.","Install @capacitor/assets locally so npx works offline."],"tags":["capacitor","assets","icons","npx"],"backgroundTag":"asset-generation-failed","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}