Skip to content

fix: preview and run do not work correctly #4802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2019

Conversation

rosen-vladimirov
Copy link
Contributor


In case there are multiple devices with the same platform, run command fails with error Cannot read property hasNativeChanges of undefined. The problem is that we return incorrect prepare data.
Also we have a problem in tns preview when multiple platforms are used - all files are send multiple times to each device as we have too many started webpack processes (in case you scan fast with devices) and we are also adding handler of the prepare ready event per each device instead per platform. Fix this by handling the event only once per platform

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

In case there are multiple devices with the same platform, `run command` fails with error `Cannot read property hasNativeChanges of undefined`. The problem is that we return incorrect prepare data.
Also we have a problem in `tns preview` when multiple platforms are used - all files are send multiple times to each device as we have too many started webpack processes (in case you scan fast with devices) and we are also adding handler of the prepare ready event per each device instead per platform. Fix this by handling the event only once per platform
the message is shown every time when we want to show a line from device logs and we are with trace level
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke cli-preview cli-device package_version#rc

@rosen-vladimirov rosen-vladimirov merged commit 8856a3c into release Jul 4, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-run-preview branch July 4, 2019 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants