Skip to content

Livesync --watch fails for TypeScript projects with sourceMaps enabled #1499

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

Closed
rosen-vladimirov opened this issue Feb 17, 2016 · 1 comment

Comments

@rosen-vladimirov
Copy link
Contributor

In case you have typescript project and you have enabled sourceMaps in your tsconfig.json, tns livesync <platform> --watch does not sync files and shows the following warning:

Unable to sync files. Error is: ENOENT: no such file or directory, stat 'D:\work\nativescript-cli\scratch\newTs\platforms\android\src\main\assets\app\main-page.js.map'

The issue has high impact as sourceMaps are true by default when using our typescript template or when adding nativescript-dev-typescript module (tns install typescript).

Steps to reproduce:

  • tns create myApp --template typescript
  • tns livesync android --watch
  • after livesync is finished, change any .ts file in your app dir.
@rosen-vladimirov
Copy link
Contributor Author

Workaround:

Open your tsconfig.json and set sourceMaps to false.

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

2 participants