我正在尝试将 Ember.js 与 Require.js 一起使用,但是当我想使用此代码创建一些路由时出现了一个奇怪的错误:
define([
   'lib/ember/load',
   "app/views/main-views",
   "app/views/nav-views",
   "app/views/body-views"
], function(em, MainViews, NavViews, BodyViews) {
    // Create a local namespace for the app
    var App = Ember.Application.create();   
    em.App = App;
    App.Router.map(function() {
        this.route("about");
    });
    // Export it from the module.
    return App;
});
我有:cannot call map of undefined。
也许,这是一个 RequireJS 配置问题?但我认为所有数据都已正确加载。
非常感谢。