TheNativeScriptBook icon indicating copy to clipboard operation
TheNativeScriptBook copied to clipboard

Examples incompatible with 4.0.2 ?

Open outsideMyBox opened this issue 7 years ago • 3 comments

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')

outsideMyBox avatar May 24 '18 11:05 outsideMyBox

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

NickBranstein avatar May 24 '18 12:05 NickBranstein

Thanks for your swift answer, and your work!

outsideMyBox avatar May 24 '18 12:05 outsideMyBox

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!! 👍

cdsaenz avatar Jul 12 '18 21:07 cdsaenz