Alex Rivera | Logout

Intermittent RequireJS Load Error

Asked 2012-06-09T07:03:25.207
17

I have a rather large Backbone.js project that uses RequireJS. As the project size grew ("size" here referring to the number of separate module files), intermittent errors started cropping up. Most of the time, it's an object error:

Uncaught TypeError: object is not a function

Occasionally, it complains about a module not being loaded.

These errors disappear once the project is run through the r.js optimizer. They only happen when RequireJS is loading the individual modules.

Which brings me down to my question - does RequireJS start having issues with modules loading in time when the number of modules reach a certain number?

Edit
Report

1 Answer

1

Verify that you have

Hope this helps

answered 2012-08-11T09:06:51.430

Your Answer