Ember Template Compiler

拈花ヽ惹草 提交于 2019-12-22 09:24:45

问题


I am new to ember.js and javascript frontend MVCs.

I am running into:

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

So I added:

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

to the top level of my project directory in the 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'

Is there a separate build step that I am missing to create the template compiler map as the last warning fails create the necessary source map?

来源:https://stackoverflow.com/questions/30580126/ember-template-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!