Ionic-cli: Since ionic cli 4.10.0 | TypeError: arg.includes is not a function

Created on 30 Jan 2019  路  5Comments  路  Source: ionic-team/ionic-cli

Description:

Since Ionic-cli 4.10.0 I get an error from the cli, when I am building the app for iOS.
With Ionic-cli 4.9.0 or older it is working without any problems.

Steps to Reproduce:

Run ionic cordova run ios -lc --prod

Output:

TypeError: arg.includes is not a function

    at args.length.args.map.arg 
(/Users/user/.nvm/versions/node/v10.15.1/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:130:44)
    at Array.map (<anonymous>)
    at ShellCommand.bashify 
(/Users/user/.nvm/versions/node/v10.15.1/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:130:29)
    at Shell.<anonymous> (/Users/user/.nvm/versions/node/v10.15.1/lib/node_modules/ionic/lib/shell.js:27:33)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/user/.nvm/versions/node/v10.15.1/lib/node_modules/ionic/node_modules/tslib/tslib.js:104:62)

Ionic info:

Ionic 4.20.0

triage

Most helpful comment

@iCodr8 Can you check if this is fixed in 4.10.1? Otherwise I may need more information: full command output and ionic info.

All 5 comments

@iCodr8 Can you check if this is fixed in 4.10.1? Otherwise I may need more information: full command output and ionic info.

@dwieeb It works. Thank you!

@devsgtech You are running on

ionic (Ionic CLI)  : 4.10.0 (/usr/local/lib/node_modules/ionic)

Use npm i -g ionic to update to 4.10.1 as @dwieeb mentioned in his post. Should be working again after the update.

It definitively works with 4.10.1.

It definitively works with 4.10.1.

got it thanks @iCodr8 @dwieeb

Was this page helpful?
0 / 5 - 0 ratings