【发布时间】:2013-05-03 21:06:31
【问题描述】:
在此处发布请求的原始帖子可以找到here 您好,我想使用 Ubuntu 13 构建 ember.js。 我已经克隆了官方的 Github 项目,将 cd 复制到项目中,并按照我所做的自述文件中的描述: 捆绑安装 耙距 屏幕上没有显示错误,因此我得到了图像中显示的目录
我想使用 ember 和 ember-data,所以我包括 余烬.js ember-data-deps.js 我的测试项目中的文件。 问题是我收到 TypeError: App.Router is undefined 我在我的 client.js 文件中使用它来初始化 ember
this.App = Ember.Application.create();
App.Router.map(function() { this.route('贡献者'); this.route('contributor', {path: '/contributors/:contributor_id'}); });
我在构建过程中做错了吗? 我应该在我的项目中包含其他一些 js 文件吗? 提前谢谢你。
【问题讨论】:
-
看看你的项目是如何设置的也很有用
标签: node.js ember.js ember-data