3

これは何百万回も尋ねられていることは知っていますが、次の行で不正な文字を見つけることができないようです:

window.require.register("templates/application", Function('exports, require, module', "module.exports = Ember.TEMPLATES[module.id.replace('templates\\','')] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {\nthis.compilerInfo = [2,'>= 1.0.0-rc.3'];\nhelpers = helpers || Ember.Handlebars.helpers; data = data || {};\n  var buffer = '', hashTypes, escapeExpression=this.escapeExpression;\n\n\n  hashTypes = {};\n  data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, \"outlet\", {hash:{},contexts:[depth0],types:[\"ID\"],hashTypes:hashTypes,data:data})));\n  data.buffer.push(\"\\n\");\n  return buffer;\n  \n});\n//@ sourceURL=templates/application.hbs"));

この行は、 https://github.com/cbosco/ember-brunchの単純な空のブランチから node/brunch を使用して生成された app.js ファイルからのものです。

エラーが発生します:

Uncaught SyntaxError: Unexpected token ILLEGAL

localhost:3333 を指すときの Chrome。Firefox では次のエラーが表示されます。

SyntaxError: 終了していない文字列リテラル

app.js で生成された「テンプレート」コードにあるようです。cbosco todomvc プロジェクトでも同じ問題が発生します。

再作成する手順:

  1. git clone git://github.com/cbosco/ember-brunch.git ember-skeleton -b empty
  2. ブランチ 新しい my_app -s ./ember-skeleton
  3. cd my_app
  4. ブランチウォッチ-s
  5. ブラウザを localhost:3333 に向ける
4

0 に答える 0