Error in app

#1

hello team, I have an error that I still can not solve, when I run it on the cli, everything runs normally, but when I run it on a mobile device, it generates errors.
suddenly someone knows how to solve.

This is my code
image

this is the error that show me in the console
image

#2

Wrap it all in a try/catch and console-log the error in the catch ().

#3

Something doesn’t add up here. Your code doesn’t include ERROR which the console output shows as output text.