diff --git a/lib/services/livesync/livesync-service.ts b/lib/services/livesync/livesync-service.ts index fad61196b2..77b4d0a722 100644 --- a/lib/services/livesync/livesync-service.ts +++ b/lib/services/livesync/livesync-service.ts @@ -62,7 +62,9 @@ class LiveSyncService implements ILiveSyncService { liveSyncData.push(this.prepareLiveSyncData(installedPlatform)); } } - + if (liveSyncData.length === 0) { + this.$errors.fail("There are no platforms installed in this project. Please specify platform or install one by using `tns platform add` command!"); + } this._isInitialized = true; // If we want before-prepare hooks to work properly, this should be set after preparePlatform function this.liveSyncCore(liveSyncData).wait();