This is a migrated thread and some comments may be shown as answers.

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

2 Answers 27 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yonggu Kang
Top achievements
Rank 1
Iron
Yonggu Kang asked on 11 Feb 2013, 05:26 AM
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 Answers, 1 is accepted

Sort by
0
Deyan Varchev
Telerik team
answered on 11 Feb 2013, 05:36 AM
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.
0
Yonggu Kang
Top achievements
Rank 1
Iron
answered on 11 Feb 2013, 05:49 AM
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

Tags
Report a bug
Asked by
Yonggu Kang
Top achievements
Rank 1
Iron
Answers by
Deyan Varchev
Telerik team
Yonggu Kang
Top achievements
Rank 1
Iron
Share this question
or