Skip to content Skip to sidebar Skip to footer

Requirejs Calling Callbacks Before Dependencies Loaded/resolved

I'm having an issue with RequireJS where my main.js script has a reference to a dependency, which is loaded but not resolved when the callback in main.js requesting this dependency

Solution 1:

To answer my own stupid question:

You're using require to define your modules, where you should be using define.

Facepalm.

Post a Comment for "Requirejs Calling Callbacks Before Dependencies Loaded/resolved"