[英]Ember issue: Uncaught Error: Could not find module handlebars
index.html : index.html :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Let's learn Ember.js</title>
<script src="jquery-1.10.2.js"</script>
<script src="handlebars-1.1.2.js"</script>
<script src="ember-1.5.1.js"</script>
<script>
window.App = Ember.Application.create();
</script>
</head>
<body>
<script type="text/x-handlebars" data-template-name="index">
<h1>Welcome to Ember.js!</h1>
</script>
</body>
</html>
jquery, handlbars and ember are in the same folder as index.html . jquery,handlbars和ember与index.html在同一文件夹中。
When I opened index.html in the Chrome (the address line of the browser looks: file:///home/askar/work/ember/emberjs/index.html ), In the Console tab of Inspect Element I'm getting the error: 当我在Chrome中打开index.html(浏览器的地址行看起来是:file:///home/askar/work/ember/emberjs/index.html)时,在Inspect Element的Console标签中,错误:
Uncaught Error: Could not find module handlebars ember-1.5.1.js:251
requireModule ember-1.5.1.js:251
(anonymous function) ember-1.5.1.js:27031
(anonymous function) ember-1.5.1.js:27317
(anonymous function) ember-1.5.1.js:44267
What am I doing wrong? 我究竟做错了什么?
Couldn't find any related posts. 找不到任何相关帖子。
It is because your script tags are missing the closing angle brackets. 这是因为您的脚本标签缺少右尖括号。
Try this: 尝试这个:
<script src="jquery-1.10.2.js"></script>
<script src="handlebars-1.1.2.js"></script>
<script src="ember-1.5.1.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.