After running the install script and trying to launch an android device, I'm getting this output:
$ tns run android --emulator --justlaunch
Copying template files...
â— Installing tns-androidInstalling tns-android
/Users/wolfgang/code/foundateui
└── [email protected]
The plugin [email protected] is already installed
TypeError: Path must be a string. Received undefined
Followed by usage information, and no emulator launches. Any idea what might be wrong here?
Mac OS 10.12.4, I believe everything else is the latest version. I can get more info if it helps.
maybe a node problem?
Can you check if you have dependency to tns-android in your package.json. If you have it - you can safely delete it.
You can also try to clear your node_modules and platforms folders and do a clean build.
Hi,
I'm having the same issue.
So everithing is fine with IOS but there is no way to see something under andorid emulator.
TypeError: Path must be a string. Received undefined
Any suggestion?
+1
I removed tns-android from my package.json, removed node_modules, removed platforms and re-ran tns run android. Works after that. Thanks!
Most helpful comment
Can you check if you have dependency to
tns-androidin yourpackage.json. If you have it - you can safely delete it.You can also try to clear your
node_modulesandplatformsfolders and do a clean build.