Build: Cannot use JSX unless the '--jsx' flag is provided
<p>I am using VS 2013 and tsx files with react. I can build my project manually just fine. (Right click and build solution)</p>

<p>But when I try to publish on Azure, VS tries to build again but at that time I am getting all bunch of errors stated as:</p>

<pre><code>Error   2   Build: Cannot use JSX unless the '--jsx' flag is provided. 
</code></pre>

<p>and points to my tsx files.</p>

<p>Seems like Azure Publish using different kind of build steps than VS 2013 does.</p>

<p>How can I fix this issue?</p>

<p><a href="https://i.stack.imgur.com/0yeMs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0yeMs.png" alt="Azure publish error"></a></p>

<p><a href="https://i.stack.imgur.com/HCeVJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HCeVJ.png" alt="VS 2013 errors"></a></p>