<p dir="auto">Any updates?</p>
<p dir="auto">I got a lot of ts errors when I used <code class="notranslate">@deno-types</code> to include type definitions for the <a href="https://github.com/sindresorhus/ky">ky</a> libarry.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// @deno-types=&quot;https://deno.land/x/ky@v0.23.0/index.d.ts&quot;
export { default as ky } from &quot;https://deno.land/x/ky@v0.23.0/index.js"><pre class="notranslate"><code class="notranslate">// @deno-types="https://deno.land/x/ky@v0.23.0/index.d.ts"
export { default as ky } from "https://deno.land/x/ky@v0.23.0/index.js
</code></pre></div>
<p dir="auto">From the error message, it is the <code class="notranslate">lib.dom.d.ts</code> which causes conflicts with other definitions.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TS2300 [ERROR]: Duplicate identifier 'Event'.
declare class Event {
              ~~~~~
    at asset:///lib.deno.web.d.ts:21:15

    'Event' was also declared here.
    interface Event {
              ~~~~~
        at asset:///lib.dom.d.ts:5285:11    and here.
    declare var Event: {
                ~~~~~
        at asset:///lib.dom.d.ts:5353:13
..."><pre class="notranslate"><code class="notranslate">TS2300 [ERROR]: Duplicate identifier 'Event'.
declare class Event {
              ~~~~~
    at asset:///lib.deno.web.d.ts:21:15

    'Event' was also declared here.
    interface Event {
              ~~~~~
        at asset:///lib.dom.d.ts:5285:11    and here.
    declare var Event: {
                ~~~~~
        at asset:///lib.dom.d.ts:5353:13
...
</code></pre></div>
<p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cj1128/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cj1128">@cj1128</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="552527682" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3726" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3726/hovercard?comment_id=714194714&amp;comment_type=issue_comment" href="https://github.com/denoland/deno/issues/3726#issuecomment-714194714">#3726 (comment)</a></em></p>
<p dir="auto">When bundling the following code to be used in the browser, I get the error <em>Uncaught SyntaxError: Identifier 'i2' has already been declared</em> when loaded in the browser.</p>
<h3 dir="auto">index.html</h3>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script type=&quot;module&quot; src=&quot;bundle.js&quot;&gt;&lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">module</span>" <span class="pl-c1">src</span>="<span class="pl-s">bundle.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div>
<h3 dir="auto">modules.js</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import rough from 'https://unpkg.com/roughjs/bundled/rough.esm.js?module';
import { LitElement } from 'https://unpkg.com/lit-element/lit-element.js?module';
export { rough, LitElement }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">rough</span> <span class="pl-k">from</span> <span class="pl-s">'https://unpkg.com/roughjs/bundled/rough.esm.js?module'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">LitElement</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'https://unpkg.com/lit-element/lit-element.js?module'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">rough</span><span class="pl-kos">,</span> <span class="pl-v">LitElement</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">I'm using the following command to bundle the code:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno bundle modules.js bundle.js"><pre class="notranslate">deno bundle modules.js bundle.js</pre></div>
<p dir="auto">I was using the latest version 1.16.1 to run this, but because I remember this used to work with no errors, I compiled a list of any errors for each version in the table below.</p>
<p dir="auto">I found that there were no errors from version 1.7.0 until 1.15.0.</p>
<p dir="auto">The error also goes away if I remove the import of the <em>rough</em> module from <em>modules.js</em> which I think also includes modules that are duplicated in the <em>lit-element</em> module.</p>
<p dir="auto">This error looks like it might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="777447960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8959" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/8959/hovercard" href="https://github.com/denoland/deno/issues/8959">#8959</a> which was closed after a fix earlier this year, but both output <em>Uncaught SyntaxError: Identifier 'i2' has already been declared</em></p>
<h3 dir="auto">Windows 10 Linux Subsystem</h3>
<p dir="auto">Build: 22000<br>
Branch: co_release<br>
Release: Ubuntu 20.04.3 LTS,<br>
Kernel: Linux 5.10.16.3-microsoft-standard-WSL2</p>

<table role="table">
<thead>
<tr>
<th>Version</th>
<th>Error</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.16.1</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.16.0</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.3</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.2</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.1</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.0</td>
<td> </td>
</tr>
<tr>
<td>1.14.3</td>
<td> </td>
</tr>
<tr>
<td>1.14.2</td>
<td> </td>
</tr>
<tr>
<td>1.14.1</td>
<td> </td>
</tr>
<tr>
<td>1.14.0</td>
<td> </td>
</tr>
<tr>
<td>1.13.2</td>
<td> </td>
</tr>
<tr>
<td>1.13.1</td>
<td> </td>
</tr>
<tr>
<td>1.13.0</td>
<td> </td>
</tr>
<tr>
<td>1.12.2</td>
<td> </td>
</tr>
<tr>
<td>1.12.1</td>
<td> </td>
</tr>
<tr>
<td>1.12.0</td>
<td> </td>
</tr>
<tr>
<td>1.11.5</td>
<td> </td>
</tr>
<tr>
<td>1.11.4</td>
<td> </td>
</tr>
<tr>
<td>1.11.3</td>
<td> </td>
</tr>
<tr>
<td>1.11.2</td>
<td> </td>
</tr>
<tr>
<td>1.11.1</td>
<td> </td>
</tr>
<tr>
<td>1.11.0</td>
<td> </td>
</tr>
<tr>
<td>1.10.3</td>
<td> </td>
</tr>
<tr>
<td>1.10.2</td>
<td> </td>
</tr>
<tr>
<td>1.10.1</td>
<td> </td>
</tr>
<tr>
<td>1.10.0</td>
<td>This version can't be found</td>
</tr>
<tr>
<td>1.9.2</td>
<td> </td>
</tr>
<tr>
<td>1.9.1</td>
<td> </td>
</tr>
<tr>
<td>1.9.0</td>
<td> </td>
</tr>
<tr>
<td>1.8.3</td>
<td> </td>
</tr>
<tr>
<td>1.8.2</td>
<td> </td>
</tr>
<tr>
<td>1.8.1</td>
<td> </td>
</tr>
<tr>
<td>1.8.0</td>
<td> </td>
</tr>
<tr>
<td>1.7.5</td>
<td> </td>
</tr>
<tr>
<td>1.7.4</td>
<td> </td>
</tr>
<tr>
<td>1.7.3</td>
<td>This version can't be found</td>
</tr>
<tr>
<td>1.7.2</td>
<td> </td>
</tr>
<tr>
<td>1.7.1</td>
<td> </td>
</tr>
<tr>
<td>1.7.0</td>
<td> </td>
</tr>
<tr>
<td>1.6.3</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2075</td>
</tr>
<tr>
<td>1.6.2</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2182</td>
</tr>
<tr>
<td>1.6.1</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2182</td>
</tr>
<tr>
<td>1.6.0</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2182</td>
</tr>
<tr>
<td>1.5.4</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:1015</td>
</tr>
<tr>
<td>1.5.3</td>
<td>Uncaught ReferenceError: noChange is not defined at bundle.js:1974</td>
</tr>
<tr>
<td>1.5.2</td>
<td>Uncaught ReferenceError: noChange is not defined at bundle.js:1974</td>
</tr>
<tr>
<td>1.5.1</td>
<td>Uncaught ReferenceError: noChange is not defined at bundle.js:1974</td>
</tr>
<tr>
<td>1.5.0</td>
<td>bundle.js:2233 Uncaught SyntaxError: Identifier 'e6' has already been declared</td>
</tr>
<tr>
<td>1.4.6</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.5</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.4</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.5</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.4</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.1</td>
<td>error: Import '<a href="https://unpkg.com/@lit/css-tag.js?module" rel="nofollow">https://unpkg.com/@lit/css-tag.js?module</a>' failed: 404 Not Found</td>
</tr>
<tr>
<td>1.0.0</td>
<td>error: Uncaught AssertionError: Assertion failed.</td>
</tr>
</tbody>
</table>