quasarframework/quasar · warning

No assets to generate! No mode/include specified, filter too

Error message

No assets to generate! No mode/include specified, filter too specific or the respective Quasar mode(s) are not installed

What it means

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.

Source

Thrown at icongenie/lib/runner/generate.js:108

      log(`Generated ${type} ${green(file.relativeName)} ${gray(size)}`)
      resolve()
    })
  })
}

async function generateFromProfile(profile) {
  const params = profile.params
  const { assetsOf, files } = parseAssets(profile.assets, params.include)

  const fileOptions = await getFilesOptions(params)
  let uniqueFiles = getUniqueFiles(files)

  if (params.filter) {
    uniqueFiles = uniqueFiles.filter(file => file.generator === params.filter)
  }

  if (uniqueFiles.length === 0) {
    warn(
      `No assets to generate! No mode/include specified, filter too specific or the respective Quasar mode(s) are not installed`
    )
    return 0
  }

  printBanner(assetsOf, params)

  return Promise.all(uniqueFiles.map(file => generateFile(file, fileOptions)))
    .then(() => mount(uniqueFiles))
    .then(() => uniqueFiles.length)
}

export function generate(argv) {
  const profile = {
    params: {},
    assets: []
  }

View on GitHub (pinned to 4841521b5f)

Solutions

  1. Run without --filter/--include restrictions to see the full list of detected assets and modes.
  2. Install/verify the target Quasar mode exists (src-capacitor, src-pwa, src-electron, etc.) before generating for it.
  3. Correct the --filter value to an exact generator name shown in the banner output.

Example fix

# before (matches nothing in an SPA-only project)
icongenie generate --include pwa
# after
icongenie generate --include spa
Defensive patterns

Strategy: validation

Validate before calling

const modes = ['spa','pwa','capacitor','electron','ssr','bex'].filter(m =>
  ['pwa','capacitor','electron','bex'].includes(m) ? existsSync(`src-${m}`) : true
);
if (!modes.includes(targetMode)) console.log(`Mode ${targetMode} not installed; skip or add it via quasar mode add`);

Prevention

When it happens

Trigger: 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.

Common situations: 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.

Related errors


AI-assisted analysis of quasarframework/quasar@4841521b5f (2026-08-30). Data as JSON: /api/errors/fd2f5039733f5a60. Report an issue: GitHub.