tns --watch not working

廉价感情. 提交于 2019-12-12 03:24:51

问题


So a few days i started this app and --watch was working just fine until today.

This is what i call: tns run android --emulator --device=ANDROID --watch

but when i change code, nothing happens, my changes are not present. When i run tns doctor, it shows that everything is up to date except ios emulator( witch i am not using at this time ).

Just tried to reinstall the app( from git - https://github.com/nestor94/my-instagram ) and re-created the avd. still --watch not working.

Thanks!


回答1:


You are using the wrong command to watch for changes try using tns livesync android --watch




回答2:


Not sure about "wrong"

Since {N} 2.5.0 we say: This command is deprecated. It will be removed in the next version of NativeScript CLI. Use the "run" command instead.

I suggest that you run tns run --help and see if you have a --watch flag .. I don't see such. and from my experience, it's syncing changes by default ( unless you're adding new libs/installs and then you need to quit & run this command again )



来源:https://stackoverflow.com/questions/38446017/tns-watch-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!