I have following error in ionic lab . ionic serve is working fine but ionic lab is giving error

this error for ionic lab

throw er; // Unhandled ‘error’ event

TypeError: Cannot read property ‘0’ of undefined
at Object.exports.parseConfig (F:\IndiansInCA\node_modules@ionic\app-scripts\dist\util\cordova-config.js:34:26)
at F:\IndiansInCA\node_modules@ionic\app-scripts\dist\util\cordova-config.js:22:24
at Parser. (F:\IndiansInCA\node_modules\xml2js\lib\parser.js:303:18)
at emitOne (events.js:116:13)
at Parser.emit (events.js:211:7)
at SAXParser.onclosetag (F:\IndiansInCA\node_modules\xml2js\lib\parser.js:261:26)
at emit (F:\IndiansInCA\node_modules\sax\lib\sax.js:624:35)
at emitNode (F:\IndiansInCA\node_modules\sax\lib\sax.js:629:5)
at closeTag (F:\IndiansInCA\node_modules\sax\lib\sax.js:889:7)
at SAXParser.write (F:\IndiansInCA\node_modules\sax\lib\sax.js:1436:13)

What is your ionic info output?

Are the errors all the same?

cli packages: (C:\Users\Deepak\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.10
Cordova Platforms  : android 6.4.0
Ionic Framework    : ionic-angular 3.9.2


Node : v8.11.3
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set


backend : pro

Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: https://ionic.zone/cordova/update

You also only answered 1 of my 2 questions.

i edited que please review this .

Second error doesn’t look at all alike - please open a new topic for it.

in updating of android platform. platform is update but this error is also come

Android project created with cordova-android@7.1.0
Android Studio project detected
Android Studio project detected
(node:5744) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘replace’ of null
at updateProjectAccordingTo (F:\IndiansInCA\platforms\android\cordova\lib\prepare.js:174:58)
at F:\IndiansInCA\platforms\android\cordova\lib\prepare.js:47:16
at _fulfilled (F:\IndiansInCA\platforms\android\cordova\node_modules\q\q.js:854:54)
at self.promiseDispatch.done (F:\IndiansInCA\platforms\android\cordova\node_modules\q\q.js:883:30)
at Promise.promise.promiseDispatch (F:\IndiansInCA\platforms\android\cordova\node_modules\q\q.js:816:13)
at F:\IndiansInCA\platforms\android\cordova\node_modules\q\q.js:570:49
at runSingle (F:\IndiansInCA\platforms\android\cordova\node_modules\q\q.js:137:13)
at flush (F:\IndiansInCA\platforms\android\cordova\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
(node:5744) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5744) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Which is the exact same error as what you posted in Ionic3 is giving error while installing app in android device

ionic lab error i found in chrome console

WebSocket connection to ‘ws://localhost:53703/’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

error in this line but i dont know how to solve this

this.socket = new WebSocket(‘ws://’ + window.location.hostname + ‘:’ + IonicDevServerConfig.wsPort);

… which has nothing to do with your initial topic. Open a new one and describe your problem more extensively.

after comparing the config.xml i found name and many things are missing . this is solved my problem.

Ionic3 is giving error while installing app in android device solution is here.