RequireJS with v1.1 was fine. What about ver1.2 ?

3 posts, 0 answers
  1. YongKoo Kang
    YongKoo Kang avatar
    101 posts
    Member since:
    Jan 2010

    Posted 10 Feb 2013 Link to this post

    Hi telerik,

    I could run a app, which was made under ver 1.1 with RequireJS and Kendo Mobile,  on graphite .
    Actually it was small pilot app and demonstrated in front of customer successfully before ver 1.2 comes out.
    After I upgraded ver 1.2 ,  I can't run app on simulator anymore.
    Debug screen stops at showing only require.js and cordova.js, doesn't load main.js which declared as follows in index.html.

    <script src="cordova.js"></script>
      <script data-main="scripts/main" src="scripts/libs/require.js"></script>

    I created hello world like test  page with RequireJs, can't load main.js as well.
    What happened with ver 1.2 ? or Do I miss something ?

    p.s. pls excuse me if posted wrong section.
    RGDS
    Kang


  2. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 10 Feb 2013 Link to this post

    Hello,

     We have discovered that there is a nasty issue with the current release, which causes apps using require.js to malfunction in the simulator. We are working hard to push a new update that will fix this but until then you can use a work-around. Put the following code in your index.html file, right after the script declaration of cordova.js and before require.js.

    <script>
        require = undefined;
        define = undefined;
    </script>

    This is a temporary workaround until our fix is out. I hope it will help. 

    Regards,
    Deyan Varchev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. YongKoo Kang
    YongKoo Kang avatar
    101 posts
    Member since:
    Jan 2010

    Posted 10 Feb 2013 Link to this post

    Woo~ Great. It worked.!!

    I just come back smoking a cigarette after uploading a question
    How fast your respose is.  Wonderful.

    Thank you.

    RGDS
    Kang

Back to Top