How to use Winjs in windows8 app RRS feed

  • Question

  • I have included script url in html file

     <script type="text/javascript" src="js/Winjs/base.js"></script>
     <script type="text/javascript" src="js/Winjs/ui.js"></script>

    On running app I am getting exception

    SCRIPT5009: Unhandled exception at line 3, column 1 in ms-appx://com.test.test/www/js/Winjs/base.js
    0x800a1391 - JavaScript runtime error: 'define' is undefined

    Same exception for ui.js also. What I am doing wrong?

    Wednesday, July 23, 2014 9:21 AM

All replies

  • The templates have this already built in.  What exactly are you doing?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, July 23, 2014 12:14 PM