Empty Windows 8 project with angular throws ngLocale module not available

I created a blank Windows 8 store app, added the winstore-jscompat.js library to make the AngularJS app work in the app. Then I added the AngularJS library using the Nugget package and also added the Moment.js package.

Now, without making any changes to the application project and just adding script references, if I run the application, it starts, but in the VS output window, I get this error,

'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost / 2.0)'. Exception was thrown at line 1774, column 11 in ms-appx: // 150a27ab-bab3-4ca8-9e0d-70c91e0d0349 / scripts / angular.js 0x800a139e - JavaScript runtime error: module [$ injector: nomod] 'ngLocale' not available! You either misspelled the module name or forgot to load it. If registering the module ensures that you specify as the second argument. http://errors.angularjs.org/1.3.15/ $ injector / nomod? p0 = ngLocale program '[2228] WWAHost.exe' exited with code -1 (0xffffffff).

Maybe this is something I can just ignore, but it still bothers me, maybe because I am adding library references?

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>App3</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.2.0/css/ui-light.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.2.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.2.0/js/ui.js"></script>

    <script src="js/winstore-jscompat.js"></script>

    <!-- Angular references -->
    <script src="Scripts/moment.js"></script>
    <script src="/scripts/angular.js"></script>
    <script src="Scripts/angular-aria.js"></script>
    <script src="Scripts/angular-material.js"></script>
    <script src="/scripts/angular-ui-router.js"></script>
    <script src="/scripts/angular-winjs.js"></script>
    <script src="/scripts/angular-animate.js"></script>
    <script src="Scripts/i18n/angular-locale_en-gb.js"></script>

    <!-- App3 references -->
    <link href="/css/default.css" rel="stylesheet" />
    <script src="/js/default.js"></script>
</head>
<body>
    <p>Content goes here</p>
</body>
</html>

      

+3


source to share





All Articles