quasarframework/quasar · error
Unknown action specified (${action}).
Error message
Unknown action specified (${action}). What it means
'quasar ext <action> <name>' only supports the actions add, remove, invoke, and uninvoke. An unrecognized first parameter prints this warning, shows help, and exits with code 1.
Source
Thrown at app-vite/lib/cmd/ext.js:87
const prompts = ext.getPrompts()
const hasPrompts = Object.keys(prompts).length !== 0
console.log(
` ${green(dot)} ${ext.extId}${hasPrompts ? ' (with prompts)' : ''}`
)
if (hasPrompts) {
console.log(JSON.stringify(prompts, null, 2))
console.log()
}
}
}
} else {
const [action, extName] = argv._
if (!['add', 'remove', 'invoke', 'uninvoke'].includes(action)) {
console.log()
warn(`Unknown action specified (${action}).`)
showHelp()
process.exit(1)
}
const ext = appExt.createInstance(extName)
await ext[action === 'add' || action === 'invoke' ? 'install' : 'uninstall'](
action === 'invoke' || action === 'uninvoke'
)
}
View on GitHub (pinned to 4841521b5f)
Solutions
- Use one of: add, remove, invoke, uninvoke (e.g. 'quasar ext add my-ext').
- Map npm verbs: install→add, uninstall→remove.
- Run 'quasar ext --help' for the current command list.
Example fix
// before quasar ext install @quasar/qmarkdown // after quasar ext add @quasar/qmarkdown
Defensive patterns
Strategy: validation
Validate before calling
const VALID = ['add', 'remove', 'invoke', 'uninvoke'];
if (!VALID.includes(action)) {
throw new Error(`Invalid action '${action}'. Use: ${VALID.join(', ')}`);
} Type guard
const isExtAction = (a) => ['add', 'remove', 'invoke', 'uninvoke'].includes(a);
Prevention
- Map npm habits: install→add, uninstall→remove.
- Validate the action word in wrapper scripts before shelling out.
- Run 'quasar ext --help' for the canonical action list.
When it happens
Trigger: Running 'quasar ext install my-ext', 'quasar ext update my-ext', or any typo like 'quasar ext ad my-ext'.
Common situations: Muscle memory from npm-style verbs (install/update/uninstall), typos in the action word, or older documentation referencing renamed commands.
Related errors
- Wrong number of parameters (${argv._.length}).
- Unknown action specified (${action}).
- App Extension has no command called "${cmd}"
- Wrong number of parameters (${argv._.length}).
- No such App Extension is installed
AI-assisted analysis of quasarframework/quasar@4841521b5f (2026-08-30).
Data as JSON: /api/errors/b64fa767018f6c67.
Report an issue: GitHub.