When a Require JS module returns a value but is returning undefined when injected, there may be errors without any errors shown in the console.
1. Check for circular dependencies
2. Check for dependencies that are missing from the undefined module
3. Check the shim to see if any AMD modules are included (they shouldn’t be in the shim).