Ad

Visual Studio 2012 Express: Browser Returning 500 Status Trying To Download Jsx File

- 1 answer

I am following this tutorial: http://reactjs.net/getting-started/tutorial.html and using Visual Studio 2012 Express.

<body>
    <script src="@Url.Content("~/Scripts/Tutorial.jsx")"></script>
</body>

I have Tutorial.jsx in my Scripts folder in the same project still I am getting 500 status error in console on google chrome.

But when I try to change it to:

<body>
    <script src="~/Scripts/Tutorial.js"></script>
</body>

Tutorial.js is also in Scripts folder and chrome downloads it and its working fine.

I want to use jsx file only.

Ad

Answer

We experienced the same problem.

We solved our problem changing the build action property of the .jsx file from none to content

image1image1

Ad
source: stackoverflow.com
Ad