Adrian
Posts: 0
Joined: Thu Mar 20, 2014 3:34 am

Service triggers an "Uncaught TypeError: Object [object Object] has no method 'enhanceWithin'" after upgrading to v2.0 o

btw, the app will not crash but if you have the console open you will see the errors that I'm referring to. The problem is that the service never returns as the success call fails and the rest of the execution of other services after that never get run.

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

Service triggers an "Uncaught TypeError: Object [object Object] has no method 'enhanceWithin'" after upgrading to v2.0 o

Tested in Chrome and error is not replicated, but in Firefox there are other errors now. Could you please try there?

Adrian
Posts: 0
Joined: Thu Mar 20, 2014 3:34 am

Service triggers an "Uncaught TypeError: Object [object Object] has no method 'enhanceWithin'" after upgrading to v2.0 o

On Firefox the app doesn't even load in the test environment. I'm attaching a snapshot.
Can you let me know which version of Chrome you are using? As I mentioned before I've tested both with Chrome, Safari on an iPhone 5 and the Appery.io app on an iPhone 5 and still have the same problem that I originally described.
Thanks!

Image

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

Service triggers an "Uncaught TypeError: Object [object Object] has no method 'enhanceWithin'" after upgrading to v2.0 o

Hello!

1) We tested in 33.0.1750.154 m Chrome version and there is no error. Please try to reload page with Ctrl+F5, clear cache, localStorage and local DB
2) On Device ready you have init_main();, but there is no such function.

Adrian
Posts: 0
Joined: Thu Mar 20, 2014 3:34 am

Service triggers an "Uncaught TypeError: Object [object Object] has no method 'enhanceWithin'" after upgrading to v2.0 o

I finally identified the root cause for the problem. I have a grid that gets iterated on as part of a service, and if I place a checklist element inside that grid the code to build that element crashes.
I'm going to try and replace that with an HTML element and build the checklist element programatically.

Adrian
Posts: 0
Joined: Thu Mar 20, 2014 3:34 am

Service triggers an "Uncaught TypeError: Object [object Object] has no method 'enhanceWithin'" after upgrading to v2.0 o

Could you take a look at the appery js class and let me know why this is happening? The problem occurs any time that I add a checklist or on/off element within a grid that gets iterated on.
The app has checklist element called "threatsBox" that you can use to test. To test click on the [+] and then on the "Spot Threats" button. You will see that the grid that shows after that only displays one element. If you remove the checklist element you will see that it iterates ok.

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Service triggers an "Uncaught TypeError: Object [object Object] has no method 'enhanceWithin'" after upgrading to v2.0 o

Hello.

Let's try to restore your app from backup. It may help.

Return to “Issues”