<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">Next.js dynamic imports should work with jest test suites.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">It is failing when we run the test with the following error.<br>
<code class="notranslate">TypeError: require.resolveWeak is not a function</code></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Clone the repo <a href="https://github.com/PrudviGali/nextjs-dynamic-import-test-fail">https://github.com/PrudviGali/nextjs-dynamic-import-test-fail</a></li>
<li>npm install</li>
<li>npm run test</li>
</ol>
<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.1.3</td>
</tr>
<tr>
<td>node</td>
<td>6.9.1</td>
</tr>
<tr>
<td>OS</td>
<td>mac OS high sierra</td>
</tr>
<tr>
<td>browser</td>
<td>NA</td>
</tr>
<tr>
<td>etc</td>
<td>NA</td>
</tr>
</tbody>
</table>
<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">Console no error</p>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto">React-hot-loader: fatal error caused by  ƒ BasicLayout()<br>
no instrumentation found.  Please require react-hot-loader before React. More in troubleshooting.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>Open the page</li>
<li>Use <code class="notranslate">next/link</code> to jump to other pages</li>
</ol>
<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>v5.0.0</td>
</tr>
<tr>
<td>node</td>
<td>v8.9.0</td>
</tr>
<tr>
<td>OS</td>
<td>macOS High Sierra version 10.13.3</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome/64.0.3282.140</td>
</tr>
</tbody>
</table>