title: Meteor with react: I get `^something^ is not defined` when I run the build application or run via '--production' flag
body: <p>On my metero application I manage to run it without problems locally on my pc via <code>meteor run</code> command. Afterwads I build in by following theese steps:</p>
  
  <pre><code>cd ^project_path^
  meteor build --directory ~/build
  </code></pre>
  
  <p>Then I try to test if the build was successfull by running theese steps:</p>
  
  <pre><code>cd ~/build/bundle/programs/server
  npm install
  rm -rf node_modules/bundle/fibers
  npm install fibers
  cd ~/build/
  export PORT=8021
  export ROOT_URL="http://localhost:8021"
  export METEOR_SETTINGS=$(cat mysettings.json)
  node main.js
  </code></pre>
  
  <p>Then when I visit on my browser <a href="http://localhost:8021" rel="nofollow noreferrer">http://localhost:8021</a> I get the following error:</p>
  
  <blockquote>
    <p>me is not defined</p>
  </blockquote>
  
  <p>While if I use the <code>--debug</code> param on <code>meteor build</code> then it works just fine. Do you fellows know how to figure out why does it happen.</p>
  
  <p><strong>NOTE:</strong></p>
  
  <p>Please keep in mind I am asking a <em>WAY</em> to figure out and not the solution, but if you have the solution it would be welcome.</p>
  
  <p>Also keep in mind that I use meteor with reactjs. Also the project has been based on <a href="https://github.com/cleverbeagle/pup" rel="nofollow noreferrer" title="pup boilerplate">pup</a> boilerplate.</p>
  
  <h1>Edit1</h1>
  
  <p>I also tried to run the app via:</p>
  
  <pre><code>meteor --production --settings ^a_settings_file^
  </code></pre>
  
  <p>And I get the same error.</p>