{"record":{"id":"0ccbda3db7eb3ebd","repo":"quasarframework/quasar","slug":"no-mode-touppercase-support-detected-abortin","errorCode":null,"errorMessage":"No ${mode.toUpperCase()} support detected. Aborting.","messagePattern":"No (.+?) support detected\\. Aborting\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"app-vite/lib/cmd/mode.js","lineNumber":147,"sourceCode":"    !ssrWebservers.some(entry => entry.value === argv.webserver)\n  ) {\n    fatal(\n      `Unknown SSR webserver \"${argv.webserver}\". Valid values: ${ssrWebservers.map(entry => entry.value).join(' | ')}`\n    )\n  }\n\n  if (action === 'add') {\n    const { addMode } = await import(`../modes/${mode}/${mode}-installation.js`)\n    await addMode({\n      ctx,\n      webserver: argv.webserver,\n      filenameBasedRouting: argv['filename-based-routing'],\n      appId: argv['app-id'],\n      appName: argv['app-name']\n    })\n  } else if (action === 'remove') {\n    if (!isModeInstalled(ctx.appPaths, mode)) {\n      warn(`No ${mode.toUpperCase()} support detected. Aborting.`)\n      return\n    }\n\n    const promptSession = await createPromptSession(\n      `Removing ${mode.toUpperCase()} Mode...`\n    )\n    if (argv.yes !== true) {\n      const { go } = await promptSession.prompt({\n        go: () =>\n          promptSession.confirm({\n            message: `Will remove /src-${mode} folder. Are you sure?`,\n            initialValue: false\n          })\n      })\n\n      if (!go) {\n        promptSession.cancel('Aborted by user')\n        process.exit(1)","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/app-vite/lib/cmd/mode.js#L129-L165","documentation":"`quasar mode remove <MODE>` checks whether the mode's support folder (e.g. /src-pwa, /src-electron) exists before deleting anything. If the mode was never added (or was already removed), the CLI warns and aborts instead of deleting blindly. Exit code 0 — no harm was done.","triggerScenarios":"Running `quasar mode remove <mode>` when `isModeInstalled(ctx.appPaths, mode)` returns false, i.e. the mode's src directory is missing from the project (mode.js:145-148).","commonSituations":"Cleanup scripts that remove all modes unconditionally; running remove twice; typos in a CI script where the mode was never actually added to this project; a fresh clone that lacks the mode folder.","solutions":["Do nothing — the mode is not installed, which is the desired end state.","Verify installed modes with `quasar mode` before scripting removal.","If the mode should be installed, run `quasar mode add <mode>` first."],"exampleFix":"// before\nci-clean.sh: quasar mode remove pwa || true\n// after\nci-clean.sh: quasar mode | grep -q 'Mode PWA.*yes' && quasar mode remove pwa --yes","handlingStrategy":"validation","validationCode":"// bash: only remove when installed\nquasar mode | grep -q \"Mode ${MODE^^}.*yes\" && quasar mode remove \"$MODE\" --yes","typeGuard":null,"tryCatchPattern":"// the warning is not fatal (exit 0); treat absence as success in scripts\nif (!output.includes('Aborting')) { /* proceed */ }","preventionTips":["Check `quasar mode` output before remove operations.","Make idempotent cleanup scripts tolerant of already-removed modes.","Pass --yes in CI to avoid interactive prompts on real removals."],"tags":["cli","mode-management","not-installed"],"backgroundTag":"mode-not-installed","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}