Error getting IPv4 address: TypeError: String.prototype.small called on null or undefined (CLI v2.0.0-beta.24)

This morning I updated ionic to latest beta version and I am not able to run live reload on device anymore.

boris@boris-VirtualBox ~/projects/My-Project $ ionic run android --livereload --consolelogs
WARN: ionic.config.js has been deprecated, you can remove it.

Running 'run:before' gulp task before run
[18:18:13] Starting 'clean'...
[18:18:13] Finished 'clean' after 33 ms
[18:18:13] Starting 'watch'...
[18:18:13] Starting 'sass'...
[18:18:13] Starting 'html'...
[18:18:13] Starting 'fonts'...
[18:18:13] Starting 'scripts'...
[18:18:13] Finished 'scripts' after 61 ms
[18:18:13] Finished 'html' after 72 ms
[18:18:13] Finished 'fonts' after 80 ms
[18:18:14] Finished 'sass' after 1.08 s
7.2 MB bytes written (10.04 seconds)
[18:18:25] Finished 'watch' after 12 s
[18:18:25] Starting 'run:before'...
[18:18:25] Finished 'run:before' after 5.39 μs

Setup Live Reload
WARN: ionic.config.js has been deprecated, you can remove it.

Multiple addresses available.
Please select which address to use by entering its number from the list below:


Error getting IPv4 address: TypeError: String.prototype.small called on null or undefined (CLI v2.0.0-beta.24)

Your system information:

Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-beta.4
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS: Distributor ID:	LinuxMint Description:	Linux Mint 17.3 Rosa 
Node Version: v5.10.1

But addreses list is working fine.

boris@boris-VirtualBox ~/projects/My-Project $ ionic address
WARN: ionic.config.js has been deprecated, you can remove it.

Multiple addresses available.
Please select which address to use by entering its number from the list below:
 1) 10.0.2.15 (eth0)
 2) 192.168.0.18 (eth1)
 3) localhost
Address Selection:  2

Any suggestions on what could be wrong here?

2 Likes

In 2.0.0-beta.23 it is working fine.

Could you open an issue for this. I’m seeing this as well

Just add --address YOUR_IP

Sample:

ionic run android --livereload --consolelogs --address 192.168.0.7

3 Likes

When adding the --address parameter it will launch the app, but the app hangs at the launch screen. In my case, using the emulator. CLI version v2.0.0-beta.25 by the way:

Error getting IPv4 address: TypeError: String.prototype.small called on null or undefined (CLI v2.0.0-beta.25)

Your system information:

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.5
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.5 
ios-sim version: 5.0.2 
OS: Mac OS X El Capitan
Node Version: v5.5.0
Xcode version: Xcode 7.3 Build version 7D175

Referencing the issue here, so that the others with the same problem can find it:

1 Like