纹波 - 未捕获的错误:模块加载超时:应用http://requirejs.org/docs/errors.html#timeout [英] Ripple - Uncaught Error: Load timeout for modules: app http://requirejs.org/docs/errors.html#timeout
本文介绍了纹波 - 未捕获的错误:模块加载超时:应用http://requirejs.org/docs/errors.html#timeout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用jQuery,backbonejs,underscorejs和引导3我的移动应用程序项目。我跑我的纹波的应用程序。有时候,我在控制台得到这个愚蠢的错误。
I am using jquery, backbonejs, underscorejs and bootstrap 3 for my mobile app project. I'm run my app in ripple. Sometimes I got this silly error in my console.
Uncaught Error: Load timeout for modules: app
http://requirejs.org/docs/errors.html#timeout
为什么会发生?
非常感谢在前进。
推荐答案
我已经设置要求JS配置选项waitSeconds为0,错误就消失了。
I have set require js config option waitSeconds to 0 and the error was gone.
我的配置:
require.config({
baseUrl: 'app/lib',
paths: {
app: '../js',
tpl: '../tpl'
},
urlArgs: "bust=" + (new Date()).getTime(),
waitSeconds: 0,
shim: {
'zepto': {
exports: '$'
},
'backbone': {
//These script dependencies should be loaded before loading
//backbone.js
deps: ['zepto', 'underscore'],
//Once loaded, use the global 'Backbone' as the
//module value.
exports: 'Backbone'
},
'underscore': {
exports: '_'
}
}
});
希望这有助于
这篇关于纹波 - 未捕获的错误:模块加载超时:应用http://requirejs.org/docs/errors.html#timeout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文