Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: RequireJs question
12-14-2012, 03:51 PM #1
Hi in my main.js (used by require.js) what do I need to add to this:
to get this error to go away:
Uncaught ReferenceError: exports is not defined GameObjects.js:82
Uncaught Error: Module name "GameObjects" has not been loaded yet for context: _. Use require()
my loading page looks like this:
12-14-2012, 11:46 PM #2
- Join Date
- Jun 2007
- Thanked 583 Times in 564 Posts
you might need to run their special copy of jQuery, or re-build from the command line.
at any rate, GameObjects can't be it's own requirement, that doesn't compute.
you should list the files GameObjects needs in the 1st-argument as an array.
all this said, i find the whole system quite confusing. There's lots of options, but little example code or documentation explaining how each piece works.