You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Priyank010 (via GitHub)" <gi...@apache.org> on 2025/01/08 14:21:10 UTC
[I] Received type string ('ERR_UNHANDLED_ERROR') [cordova-android]
Priyank010 opened a new issue, #1757:
URL: https://github.com/apache/cordova-android/issues/1757
# Bug Report
I am using Quasar Framework and I was creating andoid app using "quasar build -m android -- -- --packageType=bundle". It started giving error so I remove android and cordova both. Now after installing cordova, I am Not able to add android platfrom when I run the command "cordova platform add android@latest"
## Problem
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_UNHANDLED_ERROR')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at C:\Users\User\AppData\Roaming\npm\node_modules\cordova\bin\cordova:32:22
### What is expected to happen?
### What does actually happen?
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Cordova CLI : 12.0.0 (cordova-lib@12.0.2)
Gradle : 6.5
node : v20.15.1
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->

- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Received type string ('ERR_UNHANDLED_ERROR') [cordova-android]
Posted by "jcesarmobile (via GitHub)" <gi...@apache.org>.
jcesarmobile commented on issue #1757:
URL: https://github.com/apache/cordova-android/issues/1757#issuecomment-4642914170
closing since there was no response
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Received type string ('ERR_UNHANDLED_ERROR') [cordova-android]
Posted by "CrackHub (via GitHub)" <gi...@apache.org>.
CrackHub commented on issue #1757:
URL: https://github.com/apache/cordova-android/issues/1757#issuecomment-2590499114
Same issue with:
Gradle 8.11.1
node : v22.12.0
npm: 11.0.0
Cordova CLI : 12.0.0 (cordova-lib@12.0.2)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Received type string ('ERR_UNHANDLED_ERROR') [cordova-android]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1757:
URL: https://github.com/apache/cordova-android/issues/1757#issuecomment-2590528342
When using the cordova command line directly, you should be able to tack on `--verbose` to get the underlying error.
The `TypeError [ERR_INVALID_ARG_TYPE]` is an error from our error handler trying to pass off code to sometihng that expects a number, when sometimes the error code is a string. It can result from any underlying error.
If you're using third-party tooling, you'll will have to consult their documentation to see how `--verbose` flag can be passed through to the cordova CLI command(s).
The bug that results in the type error is fixed, but still pending a patch release. So alternatively, installing the nightly version of cordova may also work for determining the underlying error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] Received type string ('ERR_UNHANDLED_ERROR') [cordova-android]
Posted by "jcesarmobile (via GitHub)" <gi...@apache.org>.
jcesarmobile closed issue #1757: Received type string ('ERR_UNHANDLED_ERROR')
URL: https://github.com/apache/cordova-android/issues/1757
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org