Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFO] Waiting for connectivity with ionic-app-scripts... #3410

Closed
amanitequeen opened this issue Jul 27, 2018 · 34 comments · Fixed by #3444
Closed

[INFO] Waiting for connectivity with ionic-app-scripts... #3410

amanitequeen opened this issue Jul 27, 2018 · 34 comments · Fixed by #3444
Labels

Comments

@amanitequeen
Copy link

Description:
I installed new ionic cli release, and since i'm unable to run application.
The message stop at "[app-scripts] [09:08:10] lint finished in 1.48 s" and then continue to output "Waiting for connectivity with ionic-app-scripts". If I stop the build with ctrl + c and try to rerun again, i get error :
[app-scripts] Error: listen EADDRINUSE :::53703
[app-scripts] at Object.exports._errnoException (util.js:1020:11)
[app-scripts] at exports._exceptionWithHostPort (util.js:1043:20)
[app-scripts] at Server._listen2 (net.js:1258:14)
[app-scripts] at listen (net.js:1294:10)
[app-scripts] at net.js:1404:9
[app-scripts] at _combinedTickCallback (internal/process/next_tick.js:83:11)
[app-scripts] at process._tickCallback (internal/process/next_tick.js:104:9)
[app-scripts] at Module.runMain (module.js:606:11)
[app-scripts] at run (bootstrap_node.js:389:7)
[app-scripts] at startup (bootstrap_node.js:149:9)
I get this error until I close the terminal, try to run again, get "Waiting for connectivity", same loop.

Steps to Reproduce:
update ionic cli and run "ionic cordova run android --livereload --address [address]

Output:
1st time :
[app-scripts] [09:07:52] ionic-app-scripts 3.1.9
[app-scripts] [09:07:52] watch started ...
[app-scripts] [09:07:52] build dev started ...
[app-scripts] [09:07:52] clean started ...
[app-scripts] [09:07:52] clean finished in 13 ms
[app-scripts] [09:07:52] copy started ...
[app-scripts] [09:07:53] deeplinks started ...
[app-scripts] [09:07:53] deeplinks finished in 297 ms
[app-scripts] [09:07:53] transpile started ...
[app-scripts] [09:07:57] transpile finished in 4.58 s
[app-scripts] [09:07:57] preprocess started ...
[app-scripts] [09:07:57] preprocess finished in less than 1 ms
[app-scripts] [09:07:57] webpack started ...
[app-scripts] [09:07:58] copy finished in 5.55 s
[app-scripts] [09:08:06] webpack finished in 8.94 s
[app-scripts] [09:08:06] sass started ...
[app-scripts] Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[app-scripts] [09:08:09] sass finished in 2.46 s
[app-scripts] [09:08:09] postprocess started ...
[app-scripts] [09:08:09] postprocess finished in 16 ms
[app-scripts] [09:08:09] lint started ...
[app-scripts] [09:08:09] build dev finished in 16.76 s
[app-scripts] [09:08:09] watch ready in 17.38 s
[app-scripts] [09:08:10] lint finished in 1.48 s
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
after :
[app-scripts] [09:10:37] ionic-app-scripts 3.1.9
[app-scripts] [09:10:37] watch started ...
[app-scripts] [09:10:37] build dev started ...
[app-scripts] events.js:160
[app-scripts] throw er; // Unhandled 'error' event
[app-scripts] ^
[app-scripts]
[app-scripts] Error: listen EADDRINUSE :::53703
[app-scripts] at Object.exports._errnoException (util.js:1020:11)
[app-scripts] at exports._exceptionWithHostPort (util.js:1043:20)
[app-scripts] at Server._listen2 (net.js:1258:14)
[app-scripts] at listen (net.js:1294:10)
[app-scripts] at net.js:1404:9
[app-scripts] at _combinedTickCallback (internal/process/next_tick.js:83:11)
[app-scripts] at process._tickCallback (internal/process/next_tick.js:104:9)
[app-scripts] at Module.runMain (module.js:606:11)
[app-scripts] at run (bootstrap_node.js:389:7)
[app-scripts] at startup (bootstrap_node.js:149:9)

My ionic info:
Ionic:

ionic (Ionic CLI) : 4.0.1
Ionic Framework : ionic-angular 3.7.1
@ionic/app-scripts : 3.1.9

Cordova:

cordova (Cordova CLI) : 7.0.1
Cordova Platforms : android 6.3.0, ios, windows 5.0.0

System:

Android SDK Tools : 26.1.1
NodeJS : v6.11.3 (C:\Program Files\nodejs\node.exe)
npm : 2.15.12
OS : Windows 10

Environment:

ANDROID_HOME : C:\Users\laurine.wermann\AppData\Local\Android\sdk

Other Information:
Before getting these errors, I made this :

@ionitron-bot ionitron-bot bot added the triage label Jul 27, 2018
@imhoffd
Copy link
Contributor

imhoffd commented Jul 27, 2018

Duplicate of #3368

You must update @ionic/app-scripts to the latest version.

@imhoffd imhoffd closed this as completed Jul 27, 2018
@imhoffd imhoffd changed the title Can't run application anymore Error: listen EADDRINUSE :::53703 Jul 27, 2018
@amanitequeen
Copy link
Author

I still have the log "Waiting for connectivity with ionic-app-scripts..." in app script 3.1.11
[app-scripts] [16:53:46] ionic-app-scripts 3.1.11
[app-scripts] [16:53:46] watch started ...
[app-scripts] [16:53:46] build dev started ...
[app-scripts] [16:53:46] clean started ...
[app-scripts] [16:53:46] clean finished in 15 ms
[app-scripts] [16:53:46] copy started ...
[app-scripts] [16:53:46] deeplinks started ...
[app-scripts] [16:53:47] deeplinks finished in 386 ms
[app-scripts] [16:53:47] transpile started ...
[app-scripts] [16:53:51] transpile finished in 4.56 s
[app-scripts] [16:53:51] preprocess started ...
[app-scripts] [16:53:51] preprocess finished in 1 ms
[app-scripts] [16:53:51] webpack started ...
[app-scripts] [16:53:52] copy finished in 5.87 s
[app-scripts] [16:54:02] webpack finished in 10.94 s
[app-scripts] [16:54:02] sass started ...
[app-scripts] Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[app-scripts] [16:54:05] sass finished in 2.57 s
[app-scripts] [16:54:05] postprocess started ...
[app-scripts] [16:54:05] postprocess finished in 17 ms
[app-scripts] [16:54:05] lint started ...
[app-scripts] [16:54:05] build dev finished in 18.99 s
[app-scripts] [16:54:05] watch ready in 19.55 s
[app-scripts] [16:54:06] lint finished in 1.44 s
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
PS C:\QUALIOS\Sources\QualiosMobile_LW\Qualios> ionic cordova run android --livereload --address 192.168.254.58

ionic-app-scripts serve --address 192.168.254.58 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser --iscordovaserve --platform android --target cordova
[app-scripts] [16:54:37] ionic-app-scripts 3.1.11
[app-scripts] [16:54:37] watch started ...
[app-scripts] [16:54:37] build dev started ...
[app-scripts] [16:54:38] clean started ...
[app-scripts] [16:54:38] clean finished in 15 ms
[app-scripts] [16:54:38] copy started ...
[app-scripts] [16:54:38] deeplinks started ...
[app-scripts] [16:54:38] deeplinks finished in 428 ms
[app-scripts] [16:54:38] transpile started ...
[app-scripts] [16:54:43] transpile finished in 4.57 s
[app-scripts] [16:54:43] preprocess started ...
[app-scripts] [16:54:43] preprocess finished in less than 1 ms
[app-scripts] [16:54:43] webpack started ...
[app-scripts] [16:54:43] copy finished in 5.76 s
[app-scripts] [16:54:52] webpack finished in 9.37 s
[app-scripts] [16:54:52] sass started ...
[app-scripts] Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[app-scripts] [16:54:55] sass finished in 2.51 s
[app-scripts] [16:54:55] postprocess started ...
[app-scripts] [16:54:55] postprocess finished in 15 ms
[app-scripts] [16:54:55] lint started ...
[app-scripts] [16:54:55] build dev finished in 17.40 s
[app-scripts] [16:54:55] watch ready in 17.94 s
[app-scripts] [16:54:56] lint finished in 1.40 s
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...

@imhoffd imhoffd changed the title Error: listen EADDRINUSE :::53703 [INFO] Waiting for connectivity with ionic-app-scripts... Jul 27, 2018
@imhoffd imhoffd reopened this Jul 27, 2018
@imhoffd
Copy link
Contributor

imhoffd commented Jul 27, 2018

@amanitequeen What is the command you're running? Why does it choose 192.168.254.58 as the host?

@rdlabo
Copy link
Contributor

rdlabo commented Jul 30, 2018

I also encountered this error. Either [email protected] or [email protected] occurs.
command is ionic serve. and this is new project.

> ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] [10:23:50]  ionic-app-scripts 3.1.11
[app-scripts] [10:23:50]  watch started ...
[app-scripts] [10:23:50]  build dev started ...
[app-scripts] [10:23:50]  clean started ...
[app-scripts] [10:23:50]  clean finished in 2 ms
[app-scripts] [10:23:50]  copy started ...
[app-scripts] [10:23:50]  deeplinks started ...
[app-scripts] [10:23:50]  deeplinks finished in 12 ms
[app-scripts] [10:23:50]  transpile started ...
[app-scripts] [10:23:52]  transpile finished in 1.81 s
[app-scripts] [10:23:52]  preprocess started ...
[app-scripts] [10:23:52]  preprocess finished in 1 ms
[app-scripts] [10:23:52]  webpack started ...
[app-scripts] [10:23:52]  copy finished in 1.92 s
[app-scripts] [10:23:56]  webpack finished in 3.60 s
[app-scripts] [10:23:56]  sass started ...
[app-scripts] Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[app-scripts] [10:23:57]  sass finished in 698 ms
[app-scripts] [10:23:57]  postprocess started ...
[app-scripts] [10:23:57]  postprocess finished in 4 ms
[app-scripts] [10:23:57]  lint started ...
[app-scripts] [10:23:57]  build dev finished in 6.21 s
[app-scripts] [10:23:57]  watch ready in 6.25 s
[app-scripts] [10:23:58]  lint finished in 1.65 s
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
Ionic:

   ionic (Ionic CLI)  : 4.0.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

System:

   NodeJS : v8.11.3 (/usr/local/bin/node)
   npm    : 6.2.0
   OS     : macOS High Sierra

@rdlabo
Copy link
Contributor

rdlabo commented Jul 30, 2018

npm run start is work. and "start": "ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser", is work.

@rdlabo
Copy link
Contributor

rdlabo commented Jul 30, 2018

@dwieeb await isHostConnectable('localhost', port); can't resolve, when dev server started.
https://github.com/ionic-team/ionic-cli/blob/develop/packages/%40ionic/cli-utils/src/lib/project/ionic-angular/serve.ts#L120

so npm run start is work, and ionic serve seems not work. (but background, work)
Sorry, I could't fix it.

@imhoffd imhoffd added bug and removed triage labels Jul 30, 2018
@imhoffd
Copy link
Contributor

imhoffd commented Jul 30, 2018

@rdlabo That's okay, thanks for finding where the CLI is hanging. isHostConnectable() should resolve when a TCP connection can be made:

const sock = net.connect({ port, host });
sock.on('connect', () => {
sock.destroy();
resolve(true);
});

This code exists so that the Ionic CLI knows when to open the browser window.

There must be something going wrong between hosting a server on 0.0.0.0:8100 and attempting connections via localhost:8100.

@rdlabo
Copy link
Contributor

rdlabo commented Jul 30, 2018

@dwieeb thanks, and I see. I will make pull-request.

@amanitequeen
Copy link
Author

Hello,

I'm was using command "ionic cordova run android --livereload --address [address]" with my ip address (192.168.254.58:8100) because i need to test on my mobile so i can't have a "localhost" address.

I tried the code in the commit, the application now build and runs but the livereload doesn't work. when i enter the address in a browser i get "ERR_CONNECTION_REFUSED"

@amanitequeen
Copy link
Author

Nevermind I relaunch the command again and it works,
thanks !

@amanitequeen
Copy link
Author

I tried again today and livereload, most of the time, doesn't work and I have to relaunch command several times to make it work again, I tried the fix "fix(cli-utils/project): pass the host address as it is" but it doesn't change the situation, i use either the command "ionic cordova run android --livereload --address [address]" or either using ""ionic cordova run android --livereload" and choose address. It looks pretty random, sometimes it works again

@HugoHeneault
Copy link

HugoHeneault commented Jul 31, 2018

Also getting it for my ionic3 project, only when I give --address parameter ;)

There is an open PR that should fix this issue: #3444

@amanitequeen
Copy link
Author

Thanks i've seen it and I already tried it. But the bug still appears, whenever i add --address or not

@HugoHeneault
Copy link

HugoHeneault commented Jul 31, 2018

@amanitequeen Did you ran npm i -g @ionic/app-scripts --save-dev? You'll need to have the latest ionic-app-scripts :)

@amanitequeen
Copy link
Author

Thanks I'll try that next time I encouter the bug

@rdlabo
Copy link
Contributor

rdlabo commented Jul 31, 2018

@amanitequeen もし昨日の修正したコードが残っていたら削除してみてください。
(Sorry, this is langage of Japanese

@sebmeg
Copy link

sebmeg commented Aug 1, 2018

Is the Problem fixed? For me still not working with [INFO] Waiting for connectivity with ionic-app-scripts...
I tried to run: npm i -g @ionic/app-scripts --save-dev but still same problem.

@imhoffd
Copy link
Contributor

imhoffd commented Aug 1, 2018

Will be fixed in 4.0.3. I am working on a fix for #3406 then I will cut a release.

@rdlabo
Copy link
Contributor

rdlabo commented Aug 2, 2018

released just now! https://github.com/ionic-team/ionic-cli/releases/tag/ionic%404.0.3

@imhoffd
Copy link
Contributor

imhoffd commented Aug 2, 2018

😄

Let me know how it works! Thank you everyone for the issue report and for helping!

@amanitequeen
Copy link
Author

works fine for me thanks ^^

@sebmeg
Copy link

sebmeg commented Aug 2, 2018

Thank you! Works for me with command ionic serve when i try to use ionic labs the following Error appears:

> ionic-lab http://localhost:8100 --host localhost --port 8200 --app-name app --app-version 0.0.1
[lab] events.js:183
[lab]       throw er; // Unhandled 'error' event
[lab]       ^
[lab] Error: getaddrinfo ENOTFOUND localhost
[lab]     at errnoException (dns.js:50:10)
[lab]     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)

[ERROR] A utility CLI has unexpectedly closed (exit code 1).
        
        The Ionic CLI will exit. Please check any output above for error details.

@christophersax-at
Copy link

For anyone that tried everything here but it still didn't work:
Try running:
npm run clean
and then
npm run ionic:serve

Worked for me.

@imhoffd
Copy link
Contributor

imhoffd commented Aug 2, 2018

@amanitequeen @sebmeg Thanks for confirming the issue is resolved!

@sebmeg Please create new issues for new errors.

@fyayc-chrisat Did you try updating the Ionic CLI to 4.0.3? Multiple people have said the original issue is resolved in this version that was just released. If that is not the case, let me know.

@rguntha
Copy link

rguntha commented Aug 4, 2018

This is not working for me. I am getting the same issue
C:\Code\OceanNet\OceanNetApp>ionic serve

ionic-app-scripts serve --address 0.0.0.0 --port 8102 --livereload-port 35731 --dev-logger-port 53704 --nobrowser
[app-scripts] [20:33:54] ionic-app-scripts 3.1.11
[app-scripts] [20:33:55] watch started ...
[app-scripts] [20:33:55] build dev started ...
[app-scripts] [20:33:55] clean started ...
[app-scripts] [20:33:55] clean finished in 16 ms
[app-scripts] [20:33:55] copy started ...
[app-scripts] [20:33:55] deeplinks started ...
[app-scripts] [20:33:55] deeplinks finished in 146 ms
[app-scripts] [20:33:55] transpile started ...
[app-scripts] [20:34:00] transpile finished in 4.85 s
[app-scripts] [20:34:00] preprocess started ...
[app-scripts] [20:34:00] preprocess finished in less than 1 ms
[app-scripts] [20:34:00] webpack started ...
[app-scripts] [20:34:00] copy finished in 5.30 s
[app-scripts] [20:34:07] webpack finished in 7.65 s
[app-scripts] [20:34:07] sass started ...
[app-scripts] Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[app-scripts] [20:34:09] sass finished in 1.24 s
[app-scripts] [20:34:09] postprocess started ...
[app-scripts] [20:34:09] postprocess finished in 6 ms
[app-scripts] [20:34:09] lint started ...
[app-scripts] [20:34:09] build dev finished in 14.09 s
[app-scripts] [20:34:09] watch ready in 14.19 s
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/entities/replication-table.ts, line: 1
[app-scripts] All imports on this line are unused.
[app-scripts] L1: import {DateConverter} from "./date-converter";
[app-scripts] L2: import { Table, PrimaryColumn, Column } from "ionic-orm-2";
[app-scripts] 'SQLiteObject' is declared but its value is never read.
[app-scripts] L16: import { Trip } from "../entities/trip";
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/orm-service.ts, line: 17
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/entities/trip.ts, line: 6
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/entities/trip.ts, line: 6
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/entities/server-response.ts, line: 1
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/socket-service.ts, line: 10
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/audit-event-service.ts, line: 7
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/trip-service.ts, line: 32
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/trip-service.ts, line: 167
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/trip-service.ts, line: 173
[INFO] Waiting for connectivity with ionic-app-scripts...etApp/src/pages/info/info.ts, line: 12
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/info/info.ts, line: 16
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/info/info.ts, line: 17
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/info/info.ts, line: 18
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/trip/trip.ts, line: 17
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/trip/trip.ts, line: 19
[app-scripts] L17: import { SQLite, SQLiteObject } from '@ionic-native/sqlite';
[app-scripts] 'OneToOne' is declared but its value is never read.
[app-scripts] L5: import {DateConverter} from "./date-converter";
[app-scripts] L6: import { Table, PrimaryColumn, Column, OneToOne, JoinColumn } from "ionic-orm-2";
[app-scripts] 'JoinColumn' is declared but its value is never read.
[app-scripts] L5: import {DateConverter} from "./date-converter";
[app-scripts] L6: import { Table, PrimaryColumn, Column, OneToOne, JoinColumn } from "ionic-orm-2";
[app-scripts] 'Any' is declared but its value is never read.
[app-scripts] L1: import {JsonObject, JsonProperty, Any} from "json2typescript";
[app-scripts] L2: import {OceanResponse} from "./response";
[app-scripts] All imports on this line are unused.
[app-scripts] L9: import { AuditEvent } from "../entities/audit-event";
[app-scripts] L10: import { AuditEventService } from "./audit-event-service";
[app-scripts] All imports on this line are unused.
[app-scripts] L6: import { SocketService } from "./socket-service";
[app-scripts] L7: import { userInfo } from "os";
[app-scripts] Property 'platform' is declared but its value is never read.
[app-scripts] L31: constructor(private http: HttpClient, private application: OceanNetApplication,private socketService:SocketService,
[app-scripts] L32: private platform:Platform,private ormService:ORMService,
[app-scripts] L33: private alertCtrl: AlertController,private userService:UserService,private inj:Injector,private auditEventService:AuditEventService) { }
[app-scripts] 'service' is declared but its value is never read.
[app-scripts] L166: if(this.userService.authToken && this.socketService.connected){
[app-scripts] L167: let service = this;
[app-scripts] L168: let serverData:Object = await this.http.get(this.application.SERVER+this.TRIP_URL+"/"+this.ongoingTripId+"?isAdmin=false&authToken="+this.userService.authToken).toPromise();
[app-scripts] 'trip' is declared but its value is never read.
[app-scripts] L172: if (response.isSuccess()) {
[app-scripts] L173: let trip:Trip = jsonConvert.deserialize(response.data, Trip);
[app-scripts] 'startTime' is declared but its value is never read.
[app-scripts] L11: export class InfoPage {
[app-scripts] L12: private startTime:string = null;
[app-scripts] L13: private endTime:string = null;
[app-scripts] 'endTime' is declared but its value is never read.
[app-scripts] L12: private startTime:string = null;
[app-scripts] L13: private endTime:string = null;
[app-scripts] L14: private name:String = null;
[app-scripts] 'name' is declared but its value is never read.
[app-scripts] L13: private endTime:string = null;
[app-scripts] L14: private name:String = null;
[app-scripts] L15: private email:String = null;
[app-scripts] 'email' is declared but its value is never read.
[app-scripts] L14: private name:String = null;
[app-scripts] L15: private email:String = null;
[app-scripts] L16: private phoneNumber:String = null;
[app-scripts] 'phoneNumber' is declared but its value is never read.
[app-scripts] L15: private email:String = null;
[app-scripts] L16: private phoneNumber:String = null;
[app-scripts] L17: private boatName:String = null;
[app-scripts] 'boatName' is declared but its value is never read.
[app-scripts] L16: private phoneNumber:String = null;
[app-scripts] L17: private boatName:String = null;
[app-scripts] L18: private numberOfUnconfirmedLocations = null;
[app-scripts] 'numberOfUnconfirmedLocations' is declared but its value is never read.
[app-scripts] L17: private boatName:String = null;
[app-scripts] L18: private numberOfUnconfirmedLocations = null;
[app-scripts] 'check' is declared but its value is never read.
[app-scripts] L16: export class TripPage {
[app-scripts] L17: private check : boolean;//= 0;
[app-scripts] L18: private description : string = null;
[app-scripts] 'tripId' is declared but its value is never read.
[app-scripts] L18: private description : string = null;
[app-scripts] L19: private tripId:number = null;
[app-scripts] L20: private tripStartDate:string = "";
[app-scripts] 'tripStartDate' is declared but its value is never read.
[app-scripts] L19: private tripId:number = null;
[app-scripts] L20: private tripStartDate:string = "";
[app-scripts] L21: private tripComments:string = "";
[app-scripts] 'tripComments' is declared but its value is never read.
[app-scripts] L20: private tripStartDate:string = "";
[app-scripts] L21: private tripComments:string = "";
[app-scripts] All imports on this line are unused.
[app-scripts] L7: import {OceanResponse} from "../../entities/response";
[app-scripts] L8: import {Trip} from "../../entities/trip";
[app-scripts] L9: import { BoatService } from '../../services/boat-service';
[app-scripts] 'replicationRepo' is declared but its value is never read.
[app-scripts] L11: public init(){
[app-scripts] L12: let replicationRepo = this.ormService.databaseConnection.getRepository(ReplicationTable);
[app-scripts] Property 'socketService' is declared but its value is never read.
[app-scripts] L29: constructor(private platform: Platform, private statusBar: StatusBar, private splashScreen: SplashScreen,private statusService:StatusService,
[app-scripts] L30: rmissions,private app:OceanNetApplication,private ormService:ORMService,private socketService:SocketService,
[app-scripts] L31: private userService:UserService,private tripService:TripService,private auditEventService:AuditEventService,private inj:Injector,
[app-scripts] 'Injector' is declared but its value is never read.
[app-scripts] L1: import { ErrorHandler, Injector, Injectable } from '@angular/core';
[app-scripts] L2: import { AuditEventService } from './audit-event-service';
[app-scripts] [20:34:13] lint finished in 3.98 s
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/trip/trip.ts, line: 20
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/trip/trip.ts, line: 21
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/pages/trip/trip.ts, line: 8
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/replicator-service.ts, line: 12
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/app/app.component.ts, line: 30
[app-scripts] [20:34:13] tslint: C:/Code/OceanNet/OceanNetApp/src/services/ocean-error-handler.ts, line: 1
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...
[INFO] Waiting for connectivity with ionic-app-scripts...

C:\Code\OceanNet\OceanNetApp>ionic info

Ionic:

ionic (Ionic CLI) : 4.0.3 (C:\Users\ramesh\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0

System:

Android SDK Tools : 26.1.1
NodeJS : v8.9.4 (C:\Program Files\nodejs\node.exe)
npm : 5.6.0
OS : Windows 10

Environment:

ANDROID_HOME : C:\Code\Android\adt-bundle-windows-x86_64-20140702\sdk

@monikaja
Copy link

monikaja commented Aug 6, 2018

Steps that work for me after installing 4.0.3 ionic version:

  • Delete project complete node modules.
  • npm i -g @ionic/app-scripts --save-dev
  • npm i
  • ionic serve

@yascasa
Copy link

yascasa commented Aug 6, 2018

sorry @monikaja your solution doesn't work for me,
is work after upgrade node.js from 6.x to latest version 10.x

@rdlabo
Copy link
Contributor

rdlabo commented Aug 6, 2018

@yascasa Ionic CLI support Node.js LTS version. So you should install node.js v8.11.3
https://nodejs.org/ja/

and pull request for this issue is marged.( #3476 ) but not released yet. so please execute ionic serve --address 127.0.0.1.

@rguntha
Copy link

rguntha commented Aug 7, 2018 via email

@rdlabo
Copy link
Contributor

rdlabo commented Aug 7, 2018

@rguntha Today, fix this Issue(#3476) version is released. Please use [email protected].

and If your env don't work using [email protected], please tell me $ionic info.

@rguntha
Copy link

rguntha commented Aug 7, 2018 via email

@developeromI89
Copy link

in my case ionic serve works with another project but for current project its not working

@DeibyML
Copy link

DeibyML commented Jan 4, 2019

Sh1t :(
I'm having the same problem. I have the ionic's version 4.6.0 and I have this:

ionic-app-script task: "build"
[15:47:48] Error: Debug Failure.
Error: Debug Failure.

Help me, please!

@zeeshananjumjunaidi
Copy link

zeeshananjumjunaidi commented Oct 28, 2020

I am still using Ionic 3, and first time I got this error although I didn't update or install any thing related to nodejs or ionic. All I did was connected my laptop to VPN network. When I turned that VPN off it start working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.