<p dir="auto">This code anywhere in next page</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;img src=&quot;/static/&quot; /&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-s">"/static/"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div>
<p dir="auto">will cause node to freeze after rebuild. Page cannot be reloaded and node CPU and memory usage continue to rise until I terminate the task.</p>


<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>


<p dir="auto">It should probably throw error and crash.</p>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto">There's a memory leak that causes node to freeze.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>Create minimal next app</li>
<li>Add this code to index.js page</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default () =&gt; (
    &lt;div&gt;
        Hello
        &lt;img src=&quot;/static/&quot; /&gt;
    &lt;/div&gt;
)"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span>
    <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>
        Hello
        <span class="pl-c1">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-s">"/static/"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span>
    <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>
<span class="pl-kos">)</span></pre></div>
<ol start="3" dir="auto">
<li><code class="notranslate">npm run dev</code></li>
<li>Load the page</li>
</ol>
<h2 dir="auto">Context</h2>


<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>3.0.1-beta.8</td>
</tr>
<tr>
<td>node</td>
<td>v8.1.1</td>
</tr>
<tr>
<td>OS</td>
<td>Windows 10</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table>
<p dir="auto">When using the .jsx extension for pages the development workflow (<code class="notranslate">node server.js</code>) breaks.</p>
<ul dir="auto">
<li>The browser prints an error in the console.</li>
<li>Components on this page will not work.</li>
<li>React DevTools won't work.</li>
</ul>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>


<p dir="auto">There should be no difference in behavior, as when I am using the .js extension for pages.</p>
<h2 dir="auto">Current Behavior</h2>


<ol dir="auto">
<li>Browser prints the following error in the console:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="index:1 GET http://localhost:3000/_next/-/page/index.js net::ERR_ABORTED
index:14 GET http://localhost:3000/_next/-/page/index.js net::ERR_ABORTED"><pre class="notranslate"><code class="notranslate">index:1 GET http://localhost:3000/_next/-/page/index.js net::ERR_ABORTED
index:14 GET http://localhost:3000/_next/-/page/index.js net::ERR_ABORTED
</code></pre></div>
<p dir="auto"><strong>NOTE:</strong> If I try to open these files in a new tab I am getting a regular 404.</p>
<ol start="2" dir="auto">
<li>React Components on this page won't execute a bit of code.</li>
<li>React DevTools can not connect to react.</li>
</ol>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>Fire up a new nextjs project</li>
<li>Create a <code class="notranslate">index.jsx</code> with some dummy components</li>
<li>Start your dev env with <code class="notranslate">next</code></li>
<li>Open the page in the browser</li>
</ol>
<h2 dir="auto">Context</h2>


<p dir="auto">I like having my files that actually contain jsx to be also named with the corresponding extension.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.4.0-canary3</td>
</tr>
<tr>
<td>node</td>
<td>9.4.0</td>
</tr>
<tr>
<td>OS</td>
<td>windows 10 1709 (build 16299.192), osx 10.13.2</td>
</tr>
<tr>
<td>browser</td>
<td>chrome 63.0</td>
</tr>
<tr>
<td>etc</td>
<td>linux subsystem for windows, same issue happens with cmd, tho</td>
</tr>
</tbody>
</table>
<p dir="auto"><strong>EDIT:</strong> Verified the same behavior on a mac.</p>