<h1 dir="auto">Example</h1>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;Link href=&quot;/posts/[id]&quot; as=&quot;/posts/article123&quot;&gt;
    &lt;a&gt;Go to post&lt;/a&gt;
&lt;/Link&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/posts/[id]"</span> <span class="pl-c1">as</span><span class="pl-c1">=</span><span class="pl-s">"/posts/article123"</span><span class="pl-c1">&gt;</span>
    <span class="pl-c1">&lt;</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span>Go to post<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span>
<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">&gt;</span></pre></div>
<p dir="auto">Source: <a href="https://github.com/akylkb/bug-nextjs-css0">https://github.com/akylkb/bug-nextjs-css0</a><br>
Live: <a href="https://bug-nextjs-css0.akylkb.now.sh/" rel="nofollow">https://bug-nextjs-css0.akylkb.now.sh/</a></p>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">Everything works in developer mode<br>
Doesn't work in production</p>
<h2 dir="auto">dependencies</h2>
<p dir="auto">@zeit/next-css: 1.0.1<br>
next: 9.1.3<br>
react: 16.11.0<br>
react-dom: 16.11.0</p>
<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>