这里是抛给我的控制台错误backbone.marionette与车把抛出异常试图加载我的模板
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
我使用的车把需要,插件,我甚至尝试添加“哈佛商学院”我需要垫片,但结果是一样的。
这里是我的提线木偶的视图代码:
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
}
});
});
我不知道是怎么回事,每个搜索我已经拉升已经没有产生任何有用的结果。
发生了什么事?为什么发生这种情况?请帮忙。
指出。从现在开始,我会把这样的任何一个转移到列表的末尾。谢谢! – rkstar