title: Alloy require could not find module
body: <p>Problem: Trying out a simple demo for a custom tabgroup in Titanium Alloy. However, the compiler keeps failing with the message <code>Could not find module: common</code>. What I thought would be a straightforward test is anything but.</p>
  
  <ul>
  <li>Titanium SDK: 3.1.3.GA </li>
  <li>OS: iOS 7.x</li>
  </ul>
  
  <p><strong>controllers/index.js</strong></p>
  
  <pre><code>var common = require('common');
  
  function tabGroupClicked(e) {
      common.tabGroupClicked(e);
  }
  
  Alloy.Globals.parent = $;
  Alloy.Globals.tabGroup = $.tabGroup;
  Alloy.Globals.selectedTab = $.tab1;
  
  $.index.open();
  </code></pre>
  
  <p><strong>controllers/common.js</strong></p>
  
  <pre><code>exports.tabGroupClicked = function(e){
      if (Alloy.Globals.selectedTab !== e.source){
  
        // reset the selected tab
          Alloy.Globals.previousTab = Alloy.Globals.selectedTab;
          Alloy.Globals.selectedTab = e.source;
  
          // change the selected flag
          Alloy.Globals.previousTab.selected = false;
          Alloy.Globals.selectedTab.selected = true;
  
          // change the background image
          Alloy.Globals.previousTab.backgroundImage = Alloy.Globals.previousTab.disabledImage;    
          Alloy.Globals.selectedTab.backgroundImage = Alloy.Globals.selectedTab.selectedImage;
  
          // swapping the zindexes of the childTabs
          Alloy.Globals.parent.getView(Alloy.Globals.previousTab.childTab).getView().zIndex=2;
          Alloy.Globals.parent.getView(Alloy.Globals.selectedTab.childTab).getView().zIndex=3;
      }
  };
  </code></pre>
  
  <p><strong>index.xml</strong></p>
  
  <pre><code>&lt;Alloy&gt;
  
          &lt;Window id="index" class="container"&gt;
  
                  &lt;View id="tabGroupWindow" zIndex="0" class="container"&gt;
                      &lt;Require src="tabThreeView" id="tabThreeView"/&gt;
                      &lt;Require src="tabTwoView" id="tabTwoView"/&gt;
                      &lt;Require src="tabOneView" id="tabOneView" /&gt;
                  &lt;/View&gt;
  
                  &lt;!-- Custom tab group --&gt;
                  &lt;View id="tabGroup"&gt;        
                      &lt;View id="tab1" onClick="tabGroupClicked"&gt;&lt;/View&gt;
                      &lt;View id="tab2" onClick="tabGroupClicked"&gt;&lt;/View&gt;
                      &lt;View id="tab3" onClick="tabGroupClicked"&gt;&lt;/View&gt;
                  &lt;/View&gt;
  
              &lt;/Window&gt;
  &lt;/Alloy&gt;
  </code></pre>
  
  <p>Can anyone see anything that I'm obviously overlooking? I've cleaned the project, restarted Studio, scoured forums for any reference to this issue. Not finding a reference usually means I forgot some basic detail.</p>
  
  <p>Your help is appreciated.</p>