<h1 dir="auto">Examples bug report</h1>
<h2 dir="auto">Example name</h2>
<p dir="auto">with-ant-design-less</p>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">Links doesn't work on production build when using Ant design in pages.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Clone repo: <a href="https://github.com/watch-janick/next-with-ant-design-less-link-issue.git">https://github.com/watch-janick/next-with-ant-design-less-link-issue.git</a></p>
<ol dir="auto">
<li>Start a production build (npm run build &amp;&amp; npm run start)</li>
<li>Go to localhost:3000</li>
<li>Click on 'login'</li>
<li>Nothing happens</li>
<li>Go to localhost:3000/login</li>
<li>Click on any link</li>
<li>It works</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Every links should work.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>Version of Next.js: 9.1.6</li>
<li>Version of Ant Design: 3.25.2</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>