Skip to content

When adding mobile platform support via capacitor command is not supported by Nx #653

@axvrma

Description

@axvrma

$ nx run my-app:add:ios
$ nx run my-app:add:android

@nrwl/workspace:run-commands is deprecated and will be removed in Nx 16. Please switch to nx:run-commands

Cannot read properties of undefined (reading 'length')

TypeError: Cannot read properties of undefined (reading 'length')
at interpolateArgsIntoCommand (/Users/mrcreatist/Projects/poc/nx-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:193:47)
at /Users/mrcreatist/Projects/poc/nx-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:106:21
at Array.forEach ()
at normalizeOptions (/Users/mrcreatist/Projects/poc/nx-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:104:22)
at /Users/mrcreatist/Projects/poc/nx-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:41:28
at Generator.next ()
at fulfilled (/Users/mrcreatist/Projects/poc/nx-app/node_modules/tslib/tslib.js:115:62)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

NX Running target "my-app:add" failed

Failed tasks:

  • my-app:add:ios

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions