require tns_modules

5 posts, 0 answers
  1. Lee C
    Lee C avatar
    3 posts
    Member since:
    Jul 2009

    Posted 31 Jan 2015 Link to this post

    Hi Guys,

    I'm just getting started with NativeScript (using v0.4.2 CLI) and thought I'd create a demo app as I go (which is something people are keen on looking at the forum posts).

    Source code here: https://github.com/leecrossley/nativescript-app-rss-reader

    There does seem to be some confusion around nested app directories, so I removed the topmost as per a previous post but I am getting an issue when attempting to `require("application")`:

    /app/app.js:10:10: JS ERROR TypeError: undefined is not a function (evaluating 'app.start()') https://github.com/leecrossley/nativescript-app-rss-reader/blob/master/app/app.js#L10

    I assume this is because it's not actually referencing the tns_module application code at runtime, it's just undefined, any ideas why?

  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 02 Feb 2015 Link to this post

    Hi Lee,

    In terms of module referencing your code is actually correct. The problem lies entirely in the modules, located in the tns_modules folder. We experienced a hickup a week ago, which results in the modules being broken.

    We are working on having them fixed as soon as possible (the BETA release in two weeks the latest).

    Please, bear with us some more.

    In the meantime, you could instead create a project with AppBuilder, where the situation is much better.

    Kind regards,
    Erjan Gavalji
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Lee C
    Lee C avatar
    3 posts
    Member since:
    Jul 2009

    Posted 02 Feb 2015 in reply to Erjan Gavalji Link to this post

    That explains it then :) I'll stick with the CLI but wait for the fix. Thanks.
  4. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 09 Mar 2015 Link to this post

    Hi Lee,

    Though this comes with a three days delay (which I'm sorry about), I wanted to inform you we launched the Beta release of NativeScript.

    Please, give it a try now.

    Let me know of your experience.

    Kind regards,
    Erjan Gavalji
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Lee C
    Lee C avatar
    3 posts
    Member since:
    Jul 2009

    Posted 09 Mar 2015 in reply to Erjan Gavalji Link to this post

    Hi Erjan,

    Yep, I joined the webinar last week and have been playing with 0.9.1.

    Many thanks,

    Lee.
Back to Top