ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 644 forks source link

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

Closed amanitequeen closed 5 years ago

amanitequeen commented 5 years ago

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 :

imhoffd commented 5 years ago

Duplicate of https://github.com/ionic-team/ionic-cli/issues/3368

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

amanitequeen commented 5 years ago

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 commented 5 years ago

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

rdlabo commented 5 years ago

I also encountered this error. Either ionic@4.0.1 or ionic@4.0.0-rc.13 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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

https://github.com/ionic-team/ionic-cli/blob/49d9493b2d8ebe02f9e1e19f3be66b4d7d4d2bf6/packages/%40ionic/cli-framework/src/utils/network.ts#L80-L85

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 commented 5 years ago

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

amanitequeen commented 5 years ago

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 commented 5 years ago

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

amanitequeen commented 5 years ago

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 commented 5 years ago

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

There is an open PR that should fix this issue: https://github.com/ionic-team/ionic-cli/pull/3444

amanitequeen commented 5 years ago

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

HugoHeneault commented 5 years ago

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

amanitequeen commented 5 years ago

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

rdlabo commented 5 years ago

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

sebmeg commented 5 years ago

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 commented 5 years ago

Will be fixed in 4.0.3. I am working on a fix for https://github.com/ionic-team/ionic-cli/issues/3406 then I will cut a release.

rdlabo commented 5 years ago

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

imhoffd commented 5 years ago

😄

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

amanitequeen commented 5 years ago

works fine for me thanks ^^

sebmeg commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

Steps that work for me after installing 4.0.3 ionic version:

yascasa commented 5 years ago

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

rdlabo commented 5 years ago

@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.( https://github.com/ionic-team/ionic-cli/pull/3476 ) but not released yet. so please execute ionic serve --address 127.0.0.1.

rguntha commented 5 years ago

Thanks to you..the --address option is working for me..

The earlier delete existing node modules and reinstalling scripts and node modules did not work..

I am using Node 8.9 version

Thanks Ramesh

On Mon, Aug 6, 2018 at 7:29 PM Masahiko Sakakibara notifications@github.com wrote:

@yascasa https://github.com/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 https://github.com/ionic-team/ionic-cli/pull/3476 ) but not released yet. so please execute ionic serve --address 127.0.0.1.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ionic-team/ionic-cli/issues/3410#issuecomment-410717465, or mute the thread https://github.com/notifications/unsubscribe-auth/ADVpBcq2CKKbCW08B9KY6qbz5mdI7ulyks5uOEvFgaJpZM4VjBvn .

-- Ramesh Guntha

rdlabo commented 5 years ago

@rguntha Today, fix this Issue(https://github.com/ionic-team/ionic-cli/pull/3476) version is released. Please use ionic@4.0.5.

and If your env don't work using ionic@4.0.0, please tell me $ionic info.

rguntha commented 5 years ago

Thanks very much. It's working now with 4.0.5. I do not have to use the --address flag now.

On Tue, Aug 7, 2018 at 12:07 PM Masahiko Sakakibara < notifications@github.com> wrote:

@rguntha https://github.com/rguntha Today, fix this Issue(#3476 https://github.com/ionic-team/ionic-cli/pull/3476) version is released. Please use ionic@4.0.5.

and If your env don't work using ionic@4.0.0, please tell me $ionic info.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ionic-team/ionic-cli/issues/3410#issuecomment-410949719, or mute the thread https://github.com/notifications/unsubscribe-auth/ADVpBRXkmv1XfONxvVK1xN09xODL2Ar-ks5uOTWVgaJpZM4VjBvn .

-- Ramesh Guntha

developeromI89 commented 5 years ago

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

DeibyML commented 5 years ago

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 commented 3 years ago

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.