Ember模板编译器

时间:2015-06-01 18:00:04

标签: javascript ember.js

我是ember.js和javascript frontend MVC的新手。

我遇到了:

Cannot call 'compile' without the template compiler loaded https://github.com/emberjs/ember.js/issues/10265

所以我补充道:

app.import('bower_components/ember/ember-template-compiler.js'); 

Brocfile.js

中项目目录的顶层
ember build
Future versions of Ember CLI will not support v0.10.33. Please update to Node 0.12 or io.js.
version: 0.2.5

A new version of ember-cli is available (0.2.6). To install it, type ember update.
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/#watchman for more info.
Building..
controllers/application.js: line 1, col 16, 'Ember' is not defined.

1 error

===== 1 JSHint Error

Warning: ignoring input sourcemap for bower_components/ember/ember-template-compiler.js because ENOENT, no such file or directory 'proj/tmp/tree_merger-tmp_dest_dir-HJiSoIdK.tmp/bower_components/ember/ember-template-compiler.map'

是否有一个单独的构建步骤,我缺少创建模板编译器映射,因为最后一个警告失败创建必要的源映射?

0 个答案:

没有答案