title: Using Sencha Cmd with an existing app
body: <p>I created a theme using the sencha cmd on a dummy app and now I  want to use that theme on other applicattion. I've copied the theme folder to my app's packages folder and it's working fine.</p>
  
  <p>I made some changes so I tried to use "sencha package build" to compile the theme and got this error:</p>
  
  <pre><code>[ERR] null
  at com.sencha.command.environment.PackageEnvironment.loadBaseConfigs(PackageEnvironment.java:64)
  at com.sencha.command.environment.PackageEnvironment.&lt;init&gt;(PackageEnvironment.java:46)
  at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.java:166)
  at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:361)
  at com.sencha.command.Sencha.&lt;init&gt;(Sencha.java:67)
  at com.sencha.command.Sencha.&lt;init&gt;(Sencha.java:61)
  at com.sencha.command.Sencha.main(Sencha.java:106
  </code></pre>
  
  <p>I thought the error was related to the theme but I also get this if I try to execute a sencha command from my app folder:</p>
  
  <pre><code>[ERR] Command must be run from an application folder
  </code></pre>
  
  <p>Obviously it's some kind of misconfiguration but I have no idea how to solve it. Any suggestions?</p>
  
  <p>Edit: I've generated a new app with sencha cmd and copied the code from the old app to the new one. Now it's not building:</p>
  
  <pre><code>BUILD FAILED
  [ERR] com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExParse: Failed parsing path/ext-all-rtl-sandbox-debug-w-comments.js
  [ERR]   at
  [ERR]  org.mozilla.javascript.ast.FunctionNode.visit(FunctionNode.java:421)
  </code></pre>
  
  <p>Is there a way to compile the theme without using the cmd on ExtJs 4.2?</p>