ここに私のコンソールにスローされたエラーがあります
Uncaught TypeError: Object has no method 'chain' hbs.js:282
getExternalDeps hbs.js:282
(anonymous function) hbs.js:306
xhr.onreadystatechange hbs.js:73
Uncaught Error: Load timeout for modules: hbs!templates/reset_unnormalized2,hbs!templates/pages/login_unnormalized3,hbs!templates/reset,hbs!templates/pages/login
http://requirejs.org/docs/errors.html#timeout require.js:160
私は handlebars-require-plugin を使用しており、require shim に「hbs」を追加しようとしましたが、結果は同じです。
ここに私のマリオネットビューコードがあります:
define([
"bootstrap", // bootstrap does not export anything, so no arg sent to our function
"marionette",
"session", "events",
"hbs!templates/pages/login"
], function( Marionette, Session, Events, LoginTemplate ){
return Marionette.View.extend({
template : {
type : "handlebars",
template : LoginTemplate
}
});
});
ここで何が起こっているのかわかりません。検索を行っても、有用な結果は得られませんでした。
何が起こっていますか?なぜこうなった?助けてください。