You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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
Environment, Platform, Device
Windows maching
Version information
Cordova CLI : 12.0.0 ([email protected])
Gradle : 6.5
node : v20.15.1
Checklist
The text was updated successfully, but these errors were encountered: