我是 ember.js 框架的新手,正在使用 ruby on Rails 和 ember.debug.js -v 1.10.1(最新版本)。我一直在网上读到 ember 更改了这个最新补丁,但我不知道如何解决我的问题:
Uncaught Error: Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile`.
有人可以推动我让我的编译器正常运行吗?我希望我知道我的项目中的哪些代码片段将有助于确定答案......
这篇文章可能会帮助您:
http://emberjs.com/blog/2015/02/05/compiling-templates-in-1-10-0.html http://emberjs.com/blog/2015/02/05/compiling-templates-in-1-10-0.html
如果您不使用 ember-cli - 您的 HTML 应该如下所示:
<script src="assets/ember-template-compiler.js"></script>
<script src="assets/ember.debug.js"></script>
如果您使用 ember-cli 您的模板应该是预编译的,那么您不应该遇到这个问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)