quasarframework/quasar · info
Cordova support detected already. Aborting.
Error message
Cordova support detected already. Aborting.
What it means
`quasar mode add cordova` detects that Cordova support is already present in the project. It skips re-scaffolding and, unless running silently, prints this warning; if a target was supplied it will still ensure deps and add that platform.
Source
Thrown at app-vite/lib/modes/cordova/cordova-installation.js:43
pkg: { appPkg }
} = ctx
if (isModeInstalled(appPaths, 'cordova')) {
ensureWWW({ appPaths, forced: true })
if (!fse.existsSync(appPaths.resolve.cordova('package.json'))) {
warn(
'/src-cordova/package.json not found. Your setup seems broken. Please remove Cordova support and add it again.'
)
warn()
process.exit(1)
}
if (target) {
await ensureModeDeps('cordova', ctx)
await addPlatform(appPaths, target)
} else if (silent !== true) {
warn('Cordova support detected already. Aborting.')
}
return
}
const appName = appPkg.productName || appPkg.name || 'Quasar App'
if (/^[0-9]/.test(appName)) {
warn(
'App product name cannot start with a number. ' +
'Please change the "productName" prop in your /package.json then try again.'
)
return
}
const promptSession = await createPromptSession('Installing Cordova Mode...')
const answer = {View on GitHub (pinned to 4841521b5f)
Solutions
- Skip the add step — Cordova is already available; use quasar dev -m cordova or quasar build -m cordova -T android.
- To add a specific platform to the existing setup, run quasar mode add cordova with a target (e.g. -T ios) or `cd src-cordova && cordova platform add ios`.
- For a clean slate, remove support first (quasar mode remove cordova / delete src-cordova) and re-add.
Defensive patterns
Strategy: validation
Validate before calling
const fs = require('fs');
const alreadyInstalled = fs.existsSync('src-cordova');
if (!alreadyInstalled) require('child_process').execSync('quasar mode add cordova', { stdio: 'inherit' }); Prevention
- Guard provisioning scripts with an existence check on src-cordova before adding the mode.
- Track the mode setup in your project README so teammates don't re-run add commands.
- Use `quasar mode list` to see installed modes first.
When it happens
Trigger: addMode in cordova-installation.js called when isModeInstalled(appPaths,'cordova') is true and target is falsy and silent!==true — e.g. plain `quasar mode add cordova` on a project with an existing src-cordova setup.
Common situations: Scripted setup run twice; teammate already added Cordova; following an old tutorial step out of order.
Related errors
- Capacitor support detected already. Aborting.
- Wrong number of parameters (${argv._.length}).
- Unknown action specified (${action}).
- AppDelegate.m not found. Your App will revoke the devserver'
- Please report the cordova CLI version and cordova-ios packag
AI-assisted analysis of quasarframework/quasar@4841521b5f (2026-08-30).
Data as JSON: /api/errors/a5532cf1bcf07cb4.
Report an issue: GitHub.