{"record":{"id":"d86ba05fd1085be6","repo":"quasarframework/quasar","slug":"unknown-action-specified-action-d86ba0","errorCode":null,"errorMessage":"Unknown action specified (${action}).","messagePattern":"Unknown action specified \\((.+?)\\)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app-vite/lib/cmd/mode.js","lineNumber":82,"sourceCode":"  console.log()\n  warn(`Wrong number of parameters (${argv._.length}).`)\n  showHelp()\n  process.exit(1)\n}\n\nimport { green, gray } from 'kolorist'\n\nimport { getCtx } from '../utils/get-ctx.js'\nimport { generateTypes } from '../types-generator.js'\nimport { isModeInstalled, ssrWebservers } from '../modes/modes-utils.js'\n\nasync function run() {\n  const [action, mode] = argv._\n  const ctx = getCtx({ mode: 'spa' })\n\n  if (!['add', 'remove'].includes(action)) {\n    console.log()\n    warn(`Unknown action specified (${action}).`)\n    showHelp()\n    process.exit(1)\n  }\n\n  if (mode === 'spa') {\n    warn('SPA mode is included by default. No need to add or remove it.')\n    process.exit(1)\n  }\n\n  if (\n    ![\n      void 0,\n      'pwa',\n      'cordova',\n      'capacitor',\n      'electron',\n      'ssr',\n      'ssg',","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/app-vite/lib/cmd/mode.js#L64-L100","documentation":"'quasar mode <action> <mode>' only supports add and remove as actions. Any other first parameter prints this warning, shows help, and exits with code 1. (Note that 'spa' is additionally rejected downstream since it's always included.)","triggerScenarios":"Running 'quasar mode install ssr', 'quasar mode enable pwa', or a typo like 'quasar mode adde electron'.","commonSituations":"npm-style verbs from habit, typos, or following outdated tutorials that used different verbs.","solutions":["Use 'quasar mode add <mode>' to enable a mode (e.g. add ssr, pwa, electron, capacitor, cordova, bex).","Use 'quasar mode remove <mode>' to disable it.","Run 'quasar mode --help' to see the accepted actions.","Remember spa cannot be added/removed — it's always enabled."],"exampleFix":"// before\nquasar mode enable ssr\n// after\nquasar mode add ssr","handlingStrategy":"validation","validationCode":"const VALID = ['add', 'remove'];\nif (!VALID.includes(action)) {\n  throw new Error(`Invalid mode action '${action}'. Use: ${VALID.join(', ')}`);\n}","typeGuard":"const isModeAction = (a) => ['add', 'remove'].includes(a);","tryCatchPattern":null,"preventionTips":["Only 'add' and 'remove' are valid mode actions.","Remember spa is built-in and cannot be added/removed.","Run 'quasar mode --help' before scripting unusual actions."],"tags":["cli","usage","unknown-command","mode"],"backgroundTag":"unknown-cli-command","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}