Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received type string ('ERR_UNHANDLED_ERROR') #1757

Open
1 task
Priyank010 opened this issue Jan 8, 2025 · 2 comments
Open
1 task

Received type string ('ERR_UNHANDLED_ERROR') #1757

Priyank010 opened this issue Jan 8, 2025 · 2 comments

Comments

@Priyank010
Copy link

Priyank010 commented Jan 8, 2025

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

Command or Code

image

Environment, Platform, Device

Windows maching

Version information

Cordova CLI : 12.0.0 ([email protected])
Gradle : 6.5
node : v20.15.1

Checklist

  • [x ] I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • [x ] I included all the necessary information above
@CrackHub
Copy link

CrackHub commented Jan 14, 2025

Can you check config.xml correct? check syntax maybe, I just fixed with this.

@breautek
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants