42
Views
4
Comments
Error when navigating to a screen on Mobile APP
Question

When code flow use de navigation screen, an error occurs.

This is the error i'm getting

I've been testing a lot of scenarios and i found that this error is related with the use of OS Client Action "RequireScript" for adding external javascripts

When i disable this elements the navigation between screens works normally.

Any guide about this?

UserImage.jpg
Juan Manuel Diaz Granados Baldovino

Hi. I continued reading about the problem, and i found that it is a problem with the JQUERY integration.

Can anyone give an approach about this?

2023-08-28 07-00-10
Paulo Torres
Champion

Hi Juan,

You have these scripts in Resume page?

UserImage.jpg
Juan Manuel Diaz Granados Baldovino

No, resume page doesn't have this scripts.

What i have is a javascript like this:

require.config({

    paths: {

        'dependency1':'https://cdn.jsdelivr.net/npm/@stomp/stompjs@5.0.0/bundles/stomp.umd',

        'dependency2':'https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.9.6/lottie',

        'dependency3':'https://my.domain.com/js/core',

        'dependency4':'https://my.domain.com/js/video'

    }

});

require(['dependency1','dependency2','dependency3','dependency4'],

    function (dependency1,dependency2,dependency3,dependency4) {

            //code here

    }    

);

Some of the scripts on require.config use define(), so i don't know if this is part of the problem.

And thanks for your reply.

UserImage.jpg
Juan Manuel Diaz Granados Baldovino

I solved my problem.

What i found was there was a dependency between https://my.domain.com/js/core and https://my.domain.com/js/video, so i just added https://my.domain.com/js/core using OS RequireScript, calling  it before the javascript code, and removing the line from the javascript.

Still i don't understand why this was a problem.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.