Yesterday my NativeScript made me feel crazy. Suddenly my project did not build anymore. Wired error occured like

error TS2304: Cannot find name 'Promise'.

I suspect a wired library dependency (incompatible versions). After a lot of investigation I learned a lot:

  • removing the node_modules-folder and using tns installto reinstall all dependencies can help
  • the app-folder contains a second package.jsonwhich was messed up in my case
  • after updated to the newest nativescript version I realized that livesyncis deprecated now (you can use tns run ios --watchinstead)
  • using tns platform clean iosis a good idea if something is messed up
  • updating to angular 4 was very easy :-)