{"record":{"id":"6270bfe9d48b25e6","repo":"quasarframework/quasar","slug":"no-quasar-project-folder-detected-using-the-curre","errorCode":null,"errorMessage":"No Quasar project folder detected. Using the current folder as the target.","messagePattern":"No Quasar project folder detected\\. Using the current folder as the target\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"icongenie/lib/utils/app-paths.js","lineNumber":27,"sourceCode":"  while (appDir.length !== 0 && appDir.at(-1) !== sep) {\n    if (\n      existsSync(join(appDir, 'quasar.config.js')) ||\n      existsSync(join(appDir, 'quasar.config.mjs')) ||\n      existsSync(join(appDir, 'quasar.config.ts')) ||\n      existsSync(join(appDir, 'quasar.config.cjs')) ||\n      existsSync(join(appDir, 'quasar.conf.js')) // legacy\n    ) {\n      return appDir\n    }\n\n    appDir = normalize(join(appDir, '..'))\n  }\n\n  // no Quasar CLI project detected; Quasar might still be used as a\n  // library (custom Vite/Electron setups), so target the current folder\n  // instead of hard-failing -- only modes whose target folders actually\n  // exist under it will get assets generated\n  warn(\n    'No Quasar project folder detected. Using the current folder as the target.'\n  )\n  return process.cwd()\n}\n\nexport const appDir = getAppInfo()\nexport const resolveDir = dir => join(appDir, dir)\n","sourceCodeStart":9,"sourceCodeEnd":35,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/icongenie/lib/utils/app-paths.js#L9-L35","documentation":"getAppInfo in icongenie walks up from the current directory looking for a Quasar project folder (quasar.config file). When none is found, it does not hard-fail because Quasar may be used as a library in custom Vite/Electron setups; instead it warns and falls back to process.cwd() as the target folder. Asset generation only happens for mode folders that actually exist under that target.","triggerScenarios":"Running any icongenie command (e.g. `icongenie generate`) from a directory that is not inside a Quasar CLI project — no quasar.config.js found in cwd or any parent.","commonSituations":"Running icongenie in a plain Node/Vite repo, running it from the wrong subfolder or home directory, or a renamed/moved project where the quasar.config file is no longer an ancestor of cwd.","solutions":["cd into the root of your Quasar CLI project (the folder containing quasar.config.js or its parent chain) before running icongenie","Use the -t/--target flag or profile 'target' setting to explicitly point icongenie at your Quasar project folder","If Quasar is used as a library, accept the warning and ensure the mode folders (src-pwa, src-cordova, etc.) exist under the current folder"],"exampleFix":"// before (run in ~ not in project)\ncd ~ && npx icongenie generate\n// after\ncd ~/my-quasar-app && npx icongenie generate","handlingStrategy":"validation","validationCode":"import { existsSync } from 'node:fs'\nimport { resolve } from 'node:path'\nconst root = resolve('quasar.config.js')\nif (!existsSync(root)) {\n  console.error('Run icongenie from a Quasar project folder (quasar.config.js not found)')\n  process.exit(1)\n}","typeGuard":"const isQuasarProject = (dir) => existsSync(join(dir, 'quasar.config.js')) || existsSync(join(dir, 'quasar.config.ts'))","tryCatchPattern":null,"preventionTips":["Always run icongenie from the Quasar project root","Add a sanity check in CI scripts verifying quasar.config.js exists before invoking icongenie","Use the target/profile option to pin the project folder explicitly"],"tags":["icongenie","project-detection","wrong-directory"],"backgroundTag":"quasar-project-folder-not-detected","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}