Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

App with generic services will not run with new v2.0 libraries

Hello,
After switching to v2.0 libraries version in Appery Builder my app stopped working. It throws this errors at the console:

Uncaught ReferenceError: $t is not defined genericServiceArttableQuery.js:1
Uncaught ReferenceError: $t is not defined genericServiceGroupQuery.js:1
Uncaught ReferenceError: $t is not defined genericServiceGrouptreeQuery.js:1
Uncaught ReferenceError: $t is not defined genericFavouritesQuery.js:1
Uncaught TypeError: undefined is not a function service.js:46
Uncaught TypeError: Cannot set property 'serviceLoaderOptions' of undefined appery.js:1352

All these errors are generated by generic JS services (based on Appery tutorial examples). This is where it comes from:

$t.genericServiceArttableQuery = $t.createClass(null, {
// This is Generic Service custom JS - Arttable
init : function(requestOptions) {
this.__requestOptions = $.extend({}, requestOptions);
},

Code: Select all

 process : function(settings) { 

It is just the fragment of the generic service code, as you can see there is a problematic "$t" at the beginning of it.

Can you help me fix it please?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

App with generic services will not run with new v2.0 libraries

Hello Adam,

Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a, tell us its name and steps to test.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

App with generic services will not run with new v2.0 libraries

Hello Alena,
The app is already being shared with Appery support. It is called 3MC. To reproduce simply try to launch it via web tester and check console.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

App with generic services will not run with new v2.0 libraries

Adam, thank you. We need some time to figure out what may cause this. We'll let you know asap.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

App with generic services will not run with new v2.0 libraries

Hello! In JS files with generic service implementation replace $t with Appery.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

App with generic services will not run with new v2.0 libraries

Hello Maryna. That fixed issue with opening app. Thanks.
However, once I was able to open my app I could see that the styling is gone:

This is how it looks with version 1.2 of the library:

Image

and this is how it looks with 2.0 library:

Image

Is something wrong with the template? (created with Jquery Mobile Theme Roller) Can I fix it somehow?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

App with generic services will not run with new v2.0 libraries

For what jqm version did you create template? In 2.0 libraries version there is jqm 1.4 - so you need to edit theme.

Adam Garbinski
Posts: 0
Joined: Sat Sep 28, 2013 5:33 pm

App with generic services will not run with new v2.0 libraries

Ok. I get it now... Thanks Maryna. I could possibly recreate the theme in JQM Themeroller but according to what is written here:

http://jquerymobile.com/upgrade-guide...

there is plenty of more nasty monsters waiting around the corner...

So I guess I will stick to 1.3.2 JQM.

Cheers,
Adam

Return to “Issues”