requirejs module is undefined
问题 I have following directory structure scripts modules tabs.js app.js I have following code in app.js define([ 'jquery', 'underscore', 'modules/tabs', ], function($, _, Tabs) { var App = (function() { var init = function() { console.log('app'); Tabs.init(); }; return { init: init }; }()); return App; }); following code in tabs.js define([ 'jquery', 'underscore', '../app' ], function($, _, App) { var Tabs = (function() { var init = function() { console.log('tabs init'); App.init(); }; return {