Skip to content
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

Live sync endless loop #1308

Closed
hdeshev opened this issue Dec 4, 2015 · 1 comment
Closed

Live sync endless loop #1308

hdeshev opened this issue Dec 4, 2015 · 1 comment

Comments

@hdeshev
Copy link
Contributor

hdeshev commented Dec 4, 2015

Running tns livesync android --watch --log trace on the angular todomvc project ends up with an endles file change -> prepare -> compile -> file change -> prepare ... loop.

To reproduce, clone the project, add a platform, and run the command above:
https://github.com/NativeScript/sample-ng-todomvc

@Fatme
Copy link
Contributor

Fatme commented Dec 7, 2015

The problem is in https://github.com/NativeScript/sample-ng-todomvc/blob/master/hooks/before-prepare/10-fix-zone-typings.js hook.

The code that fixes the problem is:

if (!$usbLiveSyncService.isInitialized) {
        var zoneDts = path.join('node_modules', 'angular2', 'typings', 'zone', 'zone.d.ts');
        shelljs.sed('-i', /.*reference.*path.*es6-shim.*\n/g, '', zoneDts);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants