CordovaError: Promise rejected with non-error: "Target 'Nexus' not found, unable to run project

BUILD SUCCESSFUL in 2s
47 actionable tasks: 5 executed, 42 up-to-date
Built the following apk(s):
/home/lindokuhle/Projects/ionic-klimalotteriet-terminal/platforms/android/app/build/outputs/apk/debug/app-debug.apk
ANDROID_HOME=/home/lindokuhle/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
CordovaError: Promise rejected with non-error: “Target ‘Nexus’ not found, unable to run project”
at /usr/lib/node_modules/cordova/bin/cordova:29:15
at processTicksAndRejections (internal/process/task_queues.js:93:5)
[ERROR] An error occurred while running subprocess cordova.

could anyone please assist i have been stuck on this error for a week now
i have created emulator called Nexusand if i run coomand avdmanager list target
it show nexus as one of them