<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto"><code class="notranslate">&lt;Link&gt;</code> will not navigate to pages with Ant Design stylesheets.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto"><a href="https://github.com/iamricky/nextjs-bug">https://github.com/iamricky/nextjs-bug</a></p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">The app navigates to each route except <code class="notranslate">/test</code>. It fails silently w/o errors, so I don't have a way of investigating it. The app <strong>will</strong> navigate to <code class="notranslate">/test</code> if the stylesheets on line 11 of <code class="notranslate">pages/test.js</code> are omitted or commented out:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'antd/lib/button/style/css';
import 'antd/lib/checkbox/style/css';
import 'antd/lib/date-picker/style/css';
import 'antd/lib/form/style/css';
import 'antd/lib/input/style/css';
import 'antd/lib/radio/style/css';
import 'antd/lib/select/style/css';
import 'antd/lib/tag/style/css';"><pre class="notranslate"><code class="notranslate">import 'antd/lib/button/style/css';
import 'antd/lib/checkbox/style/css';
import 'antd/lib/date-picker/style/css';
import 'antd/lib/form/style/css';
import 'antd/lib/input/style/css';
import 'antd/lib/radio/style/css';
import 'antd/lib/select/style/css';
import 'antd/lib/tag/style/css';
</code></pre></div>
<h2 dir="auto">System information:</h2>
<ul dir="auto">
<li>OS: macOS 10.13.6</li>
<li>Browser: Chrome 73.0.3683.86</li>
<li>Version of Next.js: ^8.0.4</li>
</ul>
<p dir="auto">This is bug report</p>
<p dir="auto">Link does not work with css-module imported. That happens when page with Link has no css, and linked page has. No errors in console, so im not sure about reasons, but there is minimal repo to reproduce:<br>
<a href="https://github.com/standy/next-css-error">https://github.com/standy/next-css-error</a></p>
<p dir="auto">Bug appears in <code class="notranslate">next@7.0.0</code> + <code class="notranslate">next-css@1.0.1</code>,<br>
Older <code class="notranslate">next@6.1.2</code> + <code class="notranslate">next-css@0.2.0</code> works fine</p>