ERR_ADDRESS_INVALID after latest update 0.0.42 @ionic/app-scripts


#1

I have update app-script as per http://blog.ionic.io/improvements-to-ionic-build-process/

after that when I serve it’s show me following error… how to fix this?

GET http://0.0.0.0:35729/livereload.js?snipver=1 net::ERR_ADDRESS_INVALID
\G:\xampp\htdocs\SareekaIO2RC2\Sareeka\node_modules@angular\core\src\facade\lang.js:201 Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.


#2

Same error here after update to 0.0.44 @ionic/app-scripts


#3

The same error after updating to rc3

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.7
Ionic App Lib Version: 2.1.4
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.1

#4

I have changed the host address from ‘0.0.0.0’ to 'localhost and seems to be ok.
Just find ‘live-reload.js’ file and change that:

  1. path to the file: /node_modules/@ionic/app-scripts/dist/dev-server/live-reload.js
  2. change this ->: src = "//" + host + ":" + port + "/livereload.js?snipver=1";
    to: src = "//localhost:" + port + "/livereload.js?snipver=1";

#5

Hi, I didn’t realize but there is a better solution without editing any files, just type in your command line the host address (e.g 127.0.0.1 or just ‘localhost’)

ionic serve --address localhost


#7

thanks! works like a charm!


#8

thanks…save my days…