ThomasBurleson / angularjs-Quizzler

The AngularJS Challenge: Create an online Quiz builder & testing application.
http://thomasburleson.github.io/angularjs-Quizzler
MIT License
414 stars 166 forks source link

Mismatched anonymous define() module #8

Closed ghost closed 9 years ago

ghost commented 10 years ago

I'm trying to use ngTable with require.js and head.js but I'm getting the following error:

Uncaught Error: Mismatched anonymous define() module: function (angular) { return factory(angular); }

Here is my boot file:

(function(head){
    'use strict';

    head.js(
        { jquery: "../vendor/jquery/dist/jquery.js"},
        { require: "../vendor/requirejs/require.js" },
        { angularjs: "../vendor/angular/angular.js" },
        { uiRouter: "../vendor/angular-ui-router/release/angular-ui-router.js" },
        { angularTable: "../vendor/ng-table/ng-table.js"}
    ).ready("ALL", function(){
        require.config({
            appDir: '',
            baseUrl: '',
            paths: {
            },
            shim: {
            }
        });

        require(['config'], function(config){
        });
    });
}(window.head));

Can youhelp me with this problem?