TypeError: Path must be a string. Received undefined


#1

Hello,

After upgrading to NativeScript 4.2.0 I am getting following error when I am try to run tns run android.

Connected devices & emulators
Searching for devices...
iTunes is not installed. Install it on your system and run this command again.
TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.join (path.js:489:7)
    at AndroidVirtualDeviceService.<anonymous> (C:\Users\Jibon\AppData\Roaming\npm\node_modules\nativescript\lib\common\mobile\android\android-virtual-device-service.js:64:38)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\Jibon\AppData\Roaming\npm\node_modules\nativescript\lib\common\mobile\android\android-virtual-device-service.js:10:58)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

tns info:

√ Getting NativeScript components versions information...
√ Component nativescript has 4.2.0 version and is up to date.
√ Component tns-core-modules has 4.2.0 version and is up to date.
√ Component tns-android has 4.2.0 version and is up to date.
× Component tns-ios is not installed.

tns doctor:

√ Getting environment information

No issues were detected.
√ Your ANDROID_HOME environment variable is set and points to correct directory.
√ Your adb from the Android SDK is correctly installed.
√ The Android SDK is installed.
√ A compatible Android SDK for compilation is found.
√ Javac is installed and is configured properly.
√ The Java Development Kit (JDK) is installed and is configured properly.
√ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
√ Getting NativeScript components versions information...
√ Component nativescript has 4.2.0 version and is up to date.
√ Component tns-core-modules has 4.2.0 version and is up to date.
√ Component tns-android has 4.2.0 version and is up to date.
× Component tns-ios is not installed.

Any hints in where I am doing mistake? Thanks in advance.