模块尚未加载上下文

快速的问题…我有一个requirejs设置像这样的定义…它的作品约8-10%的时间。 似乎某个时间的资源没有及时加载。 我是否可以用确保下面的代码正确运行的方式来包装上面的var需求列表? 我得到的错误,当它不工作是这样的:

未捕获错误:模块名称“views / association / Associations”尚未加载上下文:_

define(function( require ){ // requirejs - too many includes to pass in the array var $ = require('jquery'), _ = require('underscore'), Backbone = require('backbone'), namespace = require('namespace'), // models CustomerModel = require('models/customer/customer'), // collections // views BaseView = require('views/baseView'), Auth = require('views/auth/Auth'), SideNav = require('views/sidenav/SideNav'), CustomersView = require('views/customer/Customers'), AssociationsView = require('views/association/Associations'), //CustomerListCpeView = require('views/customer/CustomerListCpe'), //CustomerAddCpeView = require('views/customer/CustomerAddCpe'), // templates CustomerDetailTemplate = require('text!templates/customer/customerDetail.html'); 

       

网上收集的解决方案 "模块尚未加载上下文"