简体   繁体   English

灰烬问题:未被捕获的错误:找不到模块把手

[英]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和emberindex.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.

相关问题 Ember CLI - 未捕获错误:找不到模块余烬? - Ember CLI - Uncaught Error: Could not find module ember? Ember Engine Uncaught错误:找不到模块ember-views / views / select - Ember Engine Uncaught Error: Could not find module ember-views/views/select 在Ember中将mixin导入加载项会导致“未捕获的错误:找不到模块” - Import mixin into add-on in Ember cause “Uncaught Error: Could not find module” 未捕获错误:无法找到从`ui / app` loader.js导入的模块`ember`:164 - Uncaught Error: Could not find module `ember` imported from `ui/app` loader.js:164 未捕获的错误:找不到模块ember-radio-button / components / radio-button - Uncaught Error: Could not find module ember-radio-button/components/radio-button 未捕获的错误:找不到从“appName/resolver”导入的模块“ember-resolver” - Uncaught Error: Could not find module `ember-resolver` imported from `appName/resolver' jsPDF 问题:未捕获(承诺中)错误:无法加载 dompurify:错误:找不到模块“dompurify” - Issue with jsPDF: Uncaught (in Promise) Error: Could not load dompurify: Error: cannot find module 'dompurify' Ember加载初始化程序错误:找不到模块`ember-load-initializers` - Ember load-initializers error: Could not find module `ember-load-initializers` 收到以下错误:compare.js:1 未捕获的错误:找不到模块“ember” - Getting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' 带有Ember错误的把手RegisterHelper - Handlebars RegisterHelper with Ember Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM