Examples incompatible with 4.0.2 ?
Hi, I've just begun implementing the books's examples with the latest version of NativeScript 4.0.2. It seems though that some of the examples are not compatible with this last version, for example: the code in 4.7 leads to
file:///app/views/home/home.js:6:23: JS ERROR TypeError: undefined is not an object (evaluating 'frameModule.topmost().navigate')
Good morning, we're working hard getting all the code samples in the book updated for 4.x. That being said we've already started and have include live examples using the NativeScript playground. Take a look at our readme for the updated samples: https://github.com/mikebranstein/TheNativeScriptBook. We should be getting the book text updated within the next couple of weeks.
Here's the particular link for a working example of 4.7: https://play.nativescript.org/?template=play-js&id=JSPR2b&v=42
Thanks for your swift answer, and your work!
I had the same problem being a complete noob and trying to follow the examples in the live environment. I hope now the NS developers have stabilized the basic code else it's very difficult to follow up. THANKS A LOT FOR YOU HELP AND EBOOK!! 👍