This is a migrated thread and some comments may be shown as answers.

require tns_modules

4 Answers 80 Views
NativeScript Insiders
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lee C
Top achievements
Rank 1
Lee C asked on 31 Jan 2015, 12:49 PM
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?

4 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 02 Feb 2015, 07:52 AM
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.

 
0
Lee C
Top achievements
Rank 1
answered on 02 Feb 2015, 08:22 AM
That explains it then :) I'll stick with the CLI but wait for the fix. Thanks.
0
Erjan Gavalji
Telerik team
answered on 09 Mar 2015, 11:27 AM
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.

 
0
Lee C
Top achievements
Rank 1
answered on 09 Mar 2015, 11:30 AM
Hi Erjan,

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

Many thanks,

Lee.
Tags
NativeScript Insiders
Asked by
Lee C
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Lee C
Top achievements
Rank 1
Share this question
or