this is more a workaround than a real solution and actually this happens because Q is loaded with a relative path to node_modules which is considered as [a bad practice](http://requirejs.org/docs/node.html#2). So instead of this, you should try to get rid of the relative path to load Q. (normally npm packages are loaded automatically by requirejs/r.js but I guess the baseUrl being set to src breaks this somehow)