RequireJS Error

57 views
Skip to first unread message

Christopher Toledo

unread,
Dec 7, 2013, 3:14:49 PM12/7/13
to backbon...@googlegroups.com
I'm trying to use RequireJS and I think the prefix is making it error out:

[12:25:00.519] Error: Module name "jquery" has not been loaded yet for context: _. Use require([])
http://requirejs.org/docs/errors.html#notloaded @ http://localhost:3000/js/require.js:163

I removed the prefix and wrapped the files with the require.js define(['jquery', 'backbone', 'underscore'], function($, Backbone, _){ ... wrapper for now and it's working fine for my purposes.

Thanks for reading, I might try and make a general solution sometime if it would be appreciated (let me know)

Christopher Toledo

unread,
Dec 7, 2013, 5:35:12 PM12/7/13
to backbon...@googlegroups.com
It's actually not working, I am having trouble getting backbone.iosync/iobind  to override methods from the backbone instances being provided by RequireJS, and is now coming back with the error that .ioBind isn't a method :(

I'm asking on stackoverflow for ideas.
Reply all
Reply to author
Forward
0 new messages