GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Installed backbone module (with lodash) throw follow error:
Uncaught Error: Module name "underscore"
has not been loaded yet for context: _
Before any require/define called.
This is due to the order of the modules in the compiled js file.
Now in alphabetical order.
Error disappears when I move the lodash module before the backbone module.
Suggest using the order based on the dependencies of the module
To maintain the correct order of the modules I have to list them in include (via -i)
jam compile -i lodash -i backbone -o build.js
But it applies only to simple examples
More convenient trick is to manually patch require.config file (change the order of modules)
But the next time you do jam install you will need to be repeated.