{"record":{"id":"fd2f5039733f5a60","repo":"quasarframework/quasar","slug":"no-assets-to-generate-no-mode-include-specified","errorCode":null,"errorMessage":"No assets to generate! No mode/include specified, filter too specific or the respective Quasar mode(s) are not installed","messagePattern":"No assets to generate! No mode/include specified, filter too specific or the respective Quasar mode\\(s\\) are not installed","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"icongenie/lib/runner/generate.js","lineNumber":108,"sourceCode":"      log(`Generated ${type} ${green(file.relativeName)} ${gray(size)}`)\n      resolve()\n    })\n  })\n}\n\nasync function generateFromProfile(profile) {\n  const params = profile.params\n  const { assetsOf, files } = parseAssets(profile.assets, params.include)\n\n  const fileOptions = await getFilesOptions(params)\n  let uniqueFiles = getUniqueFiles(files)\n\n  if (params.filter) {\n    uniqueFiles = uniqueFiles.filter(file => file.generator === params.filter)\n  }\n\n  if (uniqueFiles.length === 0) {\n    warn(\n      `No assets to generate! No mode/include specified, filter too specific or the respective Quasar mode(s) are not installed`\n    )\n    return 0\n  }\n\n  printBanner(assetsOf, params)\n\n  return Promise.all(uniqueFiles.map(file => generateFile(file, fileOptions)))\n    .then(() => mount(uniqueFiles))\n    .then(() => uniqueFiles.length)\n}\n\nexport function generate(argv) {\n  const profile = {\n    params: {},\n    assets: []\n  }\n","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/icongenie/lib/runner/generate.js#L90-L126","documentation":"generateFromProfile collects the asset files that would be generated from the profile (filtered by mode/include and the params.filter generator); if none remain, it warns that nothing matches and returns 0 without generating anything. This is a no-op guard, not a crash.","triggerScenarios":"Running icongenie generate with an --include/--filter that matches no generator (typo), a Quasar mode (spa/pwa/capacitor/electron) not installed in the project, or a profile whose mode list yields zero files after filtering.","commonSituations":"Typo in --filter (e.g. 'icoon'); running capacitor icon generation in a project without /src-capacitor; using --include pwa in an SPA-only project; overly specific icon-name filters.","solutions":["Run without --filter/--include restrictions to see the full list of detected assets and modes.","Install/verify the target Quasar mode exists (src-capacitor, src-pwa, src-electron, etc.) before generating for it.","Correct the --filter value to an exact generator name shown in the banner output."],"exampleFix":"# before (matches nothing in an SPA-only project)\nicongenie generate --include pwa\n# after\nicongenie generate --include spa","handlingStrategy":"validation","validationCode":"const modes = ['spa','pwa','capacitor','electron','ssr','bex'].filter(m =>\n  ['pwa','capacitor','electron','bex'].includes(m) ? existsSync(`src-${m}`) : true\n);\nif (!modes.includes(targetMode)) console.log(`Mode ${targetMode} not installed; skip or add it via quasar mode add`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only pass --filter values matching generator names shown by icongenie's banner.","Confirm the target Quasar mode directory exists (src-capacitor, src-pwa, src-electron).","Run generate without filters first to see what would match."],"tags":["icongenie","assets","filter","no-op"],"backgroundTag":"no-assets-matched","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}