<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { x, y } from &quot;./alphabet.ts&quot;
import { foo, bar } from &quot;std/foo/bar.ts&quot;
import { z } from &quot;./blah.ts&quot;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">y</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./alphabet.ts"</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"std/foo/bar.ts"</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">z</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./blah.ts"</span></pre></div>
<p dir="auto">imo would look better as</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { x, y } from &quot;./alphabet.ts&quot;
import { z } from &quot;./blah.ts&quot;
import { foo, bar } from &quot;std/foo/bar.ts&quot;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">y</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./alphabet.ts"</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">z</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./blah.ts"</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"std/foo/bar.ts"</span></pre></div>
<p dir="auto">When I run <code class="notranslate">bundle</code> with Deno, I get an error and can't create a Javascript file.</p>
<p dir="auto">The target code.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference lib=&quot;dom&quot; /&gt;

class ClickLogger {
  constructor() {
    document.addEventListener('click', this.eventListener);
  }

  eventListener(e: Event) {
    const phase = e.eventPhase;
    const tag = (&lt;HTMLElement&gt;e.target)
    console.log(`Click event in phase ${phase} detected on element ${tag} by ClickLogger`);
  }

}"><pre class="notranslate"><span class="pl-c">/// &lt;reference lib="dom" /&gt;</span>

<span class="pl-k">class</span> <span class="pl-v">ClickLogger</span> <span class="pl-kos">{</span>
  <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">eventListener</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>

  <span class="pl-en">eventListener</span><span class="pl-kos">(</span><span class="pl-s1">e</span>: <span class="pl-v">Event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">const</span> <span class="pl-s1">phase</span> <span class="pl-c1">=</span> <span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-c1">eventPhase</span><span class="pl-kos">;</span>
    <span class="pl-k">const</span> <span class="pl-s1">tag</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">HTMLElement</span><span class="pl-c1">&gt;</span>e.target)
    console.log(`Click event in phase $<span class="pl-kos">{</span><span class="pl-s1">phase</span><span class="pl-kos">}</span> detected on element $<span class="pl-kos">{</span><span class="pl-s1">tag</span><span class="pl-kos">}</span> by ClickLogger`);
  <span class="pl-kos">}</span>

<span class="pl-kos">}</span></pre></div>
<p dir="auto">tsconfig.js</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;compilerOptions&quot;: {
    &quot;plugins&quot;: [
      {
        &quot;name&quot;: &quot;typescript-deno-plugin&quot;
      }
    ]
  }
}"><pre class="notranslate"><code class="notranslate">{
  "compilerOptions": {
    "plugins": [
      {
        "name": "typescript-deno-plugin"
      }
    ]
  }
}
</code></pre></div>
<p dir="auto">The executed command.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno bundle input.ts output.js"><pre class="notranslate">deno bundle input.ts output.js</pre></div>
<p dir="auto">The error that occurred.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Bundle file:///Users/nabezokodaikon/workspace/develop-private/learning-typescript/chapter04/List04_13.ts
error: TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: ImportExportKind, Module, Instance, Memory, TableKind, Table, ValueType, Global, CompileError, LinkError, RuntimeError, ReadableStreamReadResult, CountQueuingStrategy, ByteLengthQueuingStrategy, WritableStream, TransformStream, DOMException, BufferSource, BlobPart, Blob, File, FormDataEntryValue, FormData, HeadersInit, Headers, RequestInfo, RequestCache, RequestCredentials, RequestMode, RequestRedirect, ReferrerPolicy, BodyInit, RequestDestination, Request, ResponseType, Response, TextDecoder, TextEncoder, URLSearchParams, URL, MessageEvent, ErrorEvent, Worker, PerformanceEntryList, Performance, performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, Event, EventTarget, EventListenerOrEventListenerObject, CustomEvent, AbortController, AbortSignal
declare namespace WebAssembly {
~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:10:1

    Conflicts are in this file.
    interface Account {
    ~~~~~~~~~
        at asset:///lib.dom.d.ts:25:1

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'byobRequest' must be of type 'ReadableStreamBYOBRequest | undefined', but here has type 'undefined'.
  readonly byobRequest: undefined;
           ~~~~~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:346:12

    'byobRequest' was also declared here.
        readonly byobRequest: ReadableStreamBYOBRequest | undefined;
                 ~~~~~~~~~~~
        at asset:///lib.dom.d.ts:12477:14

TS2375 [ERROR]: Duplicate number index signature.
  [index: number]: string;
  ~~~~~~~~~~~~~~~~~~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:529:3

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'log' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  log: (...args: unknown[]) =&gt; void;
  ~~~
    at asset:///lib.deno.shared_globals.d.ts:583:3

    'log' was also declared here.
        log(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18948:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'debug' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  debug: (...args: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:585:3

    'debug' was also declared here.
        debug(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18939:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'info' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  info: (...args: unknown[]) =&gt; void;
  ~~~~
    at asset:///lib.deno.shared_globals.d.ts:587:3

    'info' was also declared here.
        info(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18947:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'dir' must be of type '(item?: any, options?: any) =&gt; void', but here has type '(obj: unknown, options?: Partial&lt;{ depth: number; indentLevel: number; }&gt; | undefined) =&gt; void'.
  dir: (
  ~~~
    at asset:///lib.deno.shared_globals.d.ts:589:3

    'dir' was also declared here.
        dir(item?: any, options?: any): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18940:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'dirxml' must be of type '(...data: any[]) =&gt; void', but here has type '(obj: unknown, options?: Partial&lt;{ showHidden: boolean; depth: number; colors: boolean; indentLevel: number; }&gt; | undefined) =&gt; void'.
  dirxml: (
  ~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:607:3

    'dirxml' was also declared here.
        dirxml(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18941:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'warn' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  warn: (...args: unknown[]) =&gt; void;
  ~~~~
    at asset:///lib.deno.shared_globals.d.ts:618:3

    'warn' was also declared here.
        warn(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18955:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'error' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  error: (...args: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:620:3

    'error' was also declared here.
        error(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18942:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'assert' must be of type '(condition?: boolean | undefined, ...data: any[]) =&gt; void', but here has type '(condition?: boolean | undefined, ...args: unknown[]) =&gt; void'.
  assert: (condition?: boolean, ...args: unknown[]) =&gt; void;
  ~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:626:3

    'assert' was also declared here.
        assert(condition?: boolean, ...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18935:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'table' must be of type '(tabularData?: any, properties?: string[] | undefined) =&gt; void', but here has type '(data: unknown, properties?: string[] | undefined) =&gt; void'.
  table: (data: unknown, properties?: string[] | undefined) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:629:3

    'table' was also declared here.
        table(tabularData?: any, properties?: string[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18949:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'timeLog' must be of type '(label?: string | undefined, ...data: any[]) =&gt; void', but here has type '(label?: string | undefined, ...args: unknown[]) =&gt; void'.
  timeLog: (label?: string, ...args: unknown[]) =&gt; void;
  ~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:631:3

    'timeLog' was also declared here.
        timeLog(label?: string, ...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18952:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'group' must be of type '(...data: any[]) =&gt; void', but here has type '(...label: unknown[]) =&gt; void'.
  group: (...label: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:633:3

    'group' was also declared here.
        group(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18944:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'groupCollapsed' must be of type '(...data: any[]) =&gt; void', but here has type '(...label: unknown[]) =&gt; void'.
  groupCollapsed: (...label: unknown[]) =&gt; void;
  ~~~~~~~~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:634:3

    'groupCollapsed' was also declared here.
        groupCollapsed(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18945:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'trace' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  trace: (...args: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:637:3

    'trace' was also declared here.
        trace(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18954:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'subtle' must be of type 'SubtleCrypto', but here has type 'null'.
  readonly subtle: null;
           ~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:642:12

    'subtle' was also declared here.
        readonly subtle: SubtleCrypto;
                 ~~~~~~
        at asset:///lib.dom.d.ts:3684:14

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'window'.
declare const window: Window &amp; typeof globalThis;
              ~~~~~~
    at asset:///lib.deno.window.d.ts:20:15

    'window' was also declared here.
    declare var window: Window &amp; typeof globalThis;
                ~~~~~~
        at asset:///lib.dom.d.ts:19505:13

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'self'.
declare const self: Window &amp; typeof globalThis;
              ~~~~
    at asset:///lib.deno.window.d.ts:21:15

    'self' was also declared here.
    declare var self: Window &amp; typeof globalThis;
                ~~~~
        at asset:///lib.dom.d.ts:19498:13

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onload'.
declare const onload: ((this: Window, ev: Event) =&gt; any) | null;
              ~~~~~~
    at asset:///lib.deno.window.d.ts:22:15

    'onload' was also declared here.
    declare var onload: ((this: Window, ev: Event) =&gt; any) | null;
                ~~~~~~
        at asset:///lib.dom.d.ts:19670:13

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onunload'.
declare const onunload: ((this: Window, ev: Event) =&gt; any) | null;
              ~~~~~~~~
    at asset:///lib.deno.window.d.ts:23:15

    'onunload' was also declared here.
    declare var onunload: ((this: Window, ev: Event) =&gt; any) | null;
                ~~~~~~~~
        at asset:///lib.dom.d.ts:19845:13

TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: ImportExportKind, Module, Instance, Memory, TableKind, Table, ValueType, Global, CompileError, LinkError, RuntimeError, ReadableStreamReadResult, CountQueuingStrategy, ByteLengthQueuingStrategy, WritableStream, TransformStream, DOMException, BufferSource, BlobPart, Blob, File, FormDataEntryValue, FormData, HeadersInit, Headers, RequestInfo, RequestCache, RequestCredentials, RequestMode, RequestRedirect, ReferrerPolicy, BodyInit, RequestDestination, Request, ResponseType, Response, TextDecoder, TextEncoder, URLSearchParams, URL, MessageEvent, ErrorEvent, Worker, PerformanceEntryList, Performance, performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, Event, EventTarget, EventListenerOrEventListenerObject, CustomEvent, AbortController, AbortSignal
interface Account {
~~~~~~~~~
    at asset:///lib.dom.d.ts:25:1

    Conflicts are in this file.
    declare namespace WebAssembly {
    ~~~~~~~
        at asset:///lib.deno.shared_globals.d.ts:10:1

TS2430 [ERROR]: Interface 'Window' incorrectly extends interface 'GlobalEventHandlers'.
  Types of property 'onload' are incompatible.
    Type '((this: Window, ev: Event) =&gt; any) | null' is not assignable to type '((this: GlobalEventHandlers, ev: Event) =&gt; any) | null'.
      Type '(this: Window, ev: Event) =&gt; any' is not assignable to type '(this: GlobalEventHandlers, ev: Event) =&gt; any'.
        The 'this' types of each signature are incompatible.
          Type 'GlobalEventHandlers' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 141 more.
    at asset:///lib.dom.d.ts:18394:11

TS2430 [ERROR]: Interface 'Window' incorrectly extends interface 'WindowEventHandlers'.
  Types of property 'onunload' are incompatible.
    Type '((this: Window, ev: Event) =&gt; any) | null' is not assignable to type '((this: WindowEventHandlers, ev: Event) =&gt; any) | null'.
      Type '(this: Window, ev: Event) =&gt; any' is not assignable to type '(this: WindowEventHandlers, ev: Event) =&gt; any'.
        The 'this' types of each signature are incompatible.
          Type 'WindowEventHandlers' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 206 more.
    at asset:///lib.dom.d.ts:18394:11

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'self'.
declare var self: Window &amp; typeof globalThis;
            ~~~~
    at asset:///lib.dom.d.ts:19498:13

    'self' was also declared here.
    declare const self: Window &amp; typeof globalThis;
                  ~~~~
        at asset:///lib.deno.window.d.ts:21:15

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'window'.
declare var window: Window &amp; typeof globalThis;
            ~~~~~~
    at asset:///lib.dom.d.ts:19505:13

    'window' was also declared here.
    declare const window: Window &amp; typeof globalThis;
                  ~~~~~~
        at asset:///lib.deno.window.d.ts:20:15

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onload'.
declare var onload: ((this: Window, ev: Event) =&gt; any) | null;
            ~~~~~~
    at asset:///lib.dom.d.ts:19670:13

    'onload' was also declared here.
    declare const onload: ((this: Window, ev: Event) =&gt; any) | null;
                  ~~~~~~
        at asset:///lib.deno.window.d.ts:22:15

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onunload'.
declare var onunload: ((this: Window, ev: Event) =&gt; any) | null;
            ~~~~~~~~
    at asset:///lib.dom.d.ts:19845:13

    'onunload' was also declared here.
    declare const onunload: ((this: Window, ev: Event) =&gt; any) | null;
                  ~~~~~~~~
        at asset:///lib.deno.window.d.ts:23:15

Found 28 errors."><pre class="notranslate"><code class="notranslate">Bundle file:///Users/nabezokodaikon/workspace/develop-private/learning-typescript/chapter04/List04_13.ts
error: TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: ImportExportKind, Module, Instance, Memory, TableKind, Table, ValueType, Global, CompileError, LinkError, RuntimeError, ReadableStreamReadResult, CountQueuingStrategy, ByteLengthQueuingStrategy, WritableStream, TransformStream, DOMException, BufferSource, BlobPart, Blob, File, FormDataEntryValue, FormData, HeadersInit, Headers, RequestInfo, RequestCache, RequestCredentials, RequestMode, RequestRedirect, ReferrerPolicy, BodyInit, RequestDestination, Request, ResponseType, Response, TextDecoder, TextEncoder, URLSearchParams, URL, MessageEvent, ErrorEvent, Worker, PerformanceEntryList, Performance, performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, Event, EventTarget, EventListenerOrEventListenerObject, CustomEvent, AbortController, AbortSignal
declare namespace WebAssembly {
~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:10:1

    Conflicts are in this file.
    interface Account {
    ~~~~~~~~~
        at asset:///lib.dom.d.ts:25:1

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'byobRequest' must be of type 'ReadableStreamBYOBRequest | undefined', but here has type 'undefined'.
  readonly byobRequest: undefined;
           ~~~~~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:346:12

    'byobRequest' was also declared here.
        readonly byobRequest: ReadableStreamBYOBRequest | undefined;
                 ~~~~~~~~~~~
        at asset:///lib.dom.d.ts:12477:14

TS2375 [ERROR]: Duplicate number index signature.
  [index: number]: string;
  ~~~~~~~~~~~~~~~~~~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:529:3

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'log' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  log: (...args: unknown[]) =&gt; void;
  ~~~
    at asset:///lib.deno.shared_globals.d.ts:583:3

    'log' was also declared here.
        log(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18948:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'debug' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  debug: (...args: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:585:3

    'debug' was also declared here.
        debug(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18939:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'info' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  info: (...args: unknown[]) =&gt; void;
  ~~~~
    at asset:///lib.deno.shared_globals.d.ts:587:3

    'info' was also declared here.
        info(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18947:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'dir' must be of type '(item?: any, options?: any) =&gt; void', but here has type '(obj: unknown, options?: Partial&lt;{ depth: number; indentLevel: number; }&gt; | undefined) =&gt; void'.
  dir: (
  ~~~
    at asset:///lib.deno.shared_globals.d.ts:589:3

    'dir' was also declared here.
        dir(item?: any, options?: any): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18940:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'dirxml' must be of type '(...data: any[]) =&gt; void', but here has type '(obj: unknown, options?: Partial&lt;{ showHidden: boolean; depth: number; colors: boolean; indentLevel: number; }&gt; | undefined) =&gt; void'.
  dirxml: (
  ~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:607:3

    'dirxml' was also declared here.
        dirxml(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18941:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'warn' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  warn: (...args: unknown[]) =&gt; void;
  ~~~~
    at asset:///lib.deno.shared_globals.d.ts:618:3

    'warn' was also declared here.
        warn(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18955:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'error' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  error: (...args: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:620:3

    'error' was also declared here.
        error(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18942:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'assert' must be of type '(condition?: boolean | undefined, ...data: any[]) =&gt; void', but here has type '(condition?: boolean | undefined, ...args: unknown[]) =&gt; void'.
  assert: (condition?: boolean, ...args: unknown[]) =&gt; void;
  ~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:626:3

    'assert' was also declared here.
        assert(condition?: boolean, ...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18935:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'table' must be of type '(tabularData?: any, properties?: string[] | undefined) =&gt; void', but here has type '(data: unknown, properties?: string[] | undefined) =&gt; void'.
  table: (data: unknown, properties?: string[] | undefined) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:629:3

    'table' was also declared here.
        table(tabularData?: any, properties?: string[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18949:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'timeLog' must be of type '(label?: string | undefined, ...data: any[]) =&gt; void', but here has type '(label?: string | undefined, ...args: unknown[]) =&gt; void'.
  timeLog: (label?: string, ...args: unknown[]) =&gt; void;
  ~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:631:3

    'timeLog' was also declared here.
        timeLog(label?: string, ...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18952:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'group' must be of type '(...data: any[]) =&gt; void', but here has type '(...label: unknown[]) =&gt; void'.
  group: (...label: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:633:3

    'group' was also declared here.
        group(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18944:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'groupCollapsed' must be of type '(...data: any[]) =&gt; void', but here has type '(...label: unknown[]) =&gt; void'.
  groupCollapsed: (...label: unknown[]) =&gt; void;
  ~~~~~~~~~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:634:3

    'groupCollapsed' was also declared here.
        groupCollapsed(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18945:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'trace' must be of type '(...data: any[]) =&gt; void', but here has type '(...args: unknown[]) =&gt; void'.
  trace: (...args: unknown[]) =&gt; void;
  ~~~~~
    at asset:///lib.deno.shared_globals.d.ts:637:3

    'trace' was also declared here.
        trace(...data: any[]): void;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        at asset:///lib.dom.d.ts:18954:5

TS2717 [ERROR]: Subsequent property declarations must have the same type.  Property 'subtle' must be of type 'SubtleCrypto', but here has type 'null'.
  readonly subtle: null;
           ~~~~~~
    at asset:///lib.deno.shared_globals.d.ts:642:12

    'subtle' was also declared here.
        readonly subtle: SubtleCrypto;
                 ~~~~~~
        at asset:///lib.dom.d.ts:3684:14

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'window'.
declare const window: Window &amp; typeof globalThis;
              ~~~~~~
    at asset:///lib.deno.window.d.ts:20:15

    'window' was also declared here.
    declare var window: Window &amp; typeof globalThis;
                ~~~~~~
        at asset:///lib.dom.d.ts:19505:13

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'self'.
declare const self: Window &amp; typeof globalThis;
              ~~~~
    at asset:///lib.deno.window.d.ts:21:15

    'self' was also declared here.
    declare var self: Window &amp; typeof globalThis;
                ~~~~
        at asset:///lib.dom.d.ts:19498:13

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onload'.
declare const onload: ((this: Window, ev: Event) =&gt; any) | null;
              ~~~~~~
    at asset:///lib.deno.window.d.ts:22:15

    'onload' was also declared here.
    declare var onload: ((this: Window, ev: Event) =&gt; any) | null;
                ~~~~~~
        at asset:///lib.dom.d.ts:19670:13

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onunload'.
declare const onunload: ((this: Window, ev: Event) =&gt; any) | null;
              ~~~~~~~~
    at asset:///lib.deno.window.d.ts:23:15

    'onunload' was also declared here.
    declare var onunload: ((this: Window, ev: Event) =&gt; any) | null;
                ~~~~~~~~
        at asset:///lib.dom.d.ts:19845:13

TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: ImportExportKind, Module, Instance, Memory, TableKind, Table, ValueType, Global, CompileError, LinkError, RuntimeError, ReadableStreamReadResult, CountQueuingStrategy, ByteLengthQueuingStrategy, WritableStream, TransformStream, DOMException, BufferSource, BlobPart, Blob, File, FormDataEntryValue, FormData, HeadersInit, Headers, RequestInfo, RequestCache, RequestCredentials, RequestMode, RequestRedirect, ReferrerPolicy, BodyInit, RequestDestination, Request, ResponseType, Response, TextDecoder, TextEncoder, URLSearchParams, URL, MessageEvent, ErrorEvent, Worker, PerformanceEntryList, Performance, performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, Event, EventTarget, EventListenerOrEventListenerObject, CustomEvent, AbortController, AbortSignal
interface Account {
~~~~~~~~~
    at asset:///lib.dom.d.ts:25:1

    Conflicts are in this file.
    declare namespace WebAssembly {
    ~~~~~~~
        at asset:///lib.deno.shared_globals.d.ts:10:1

TS2430 [ERROR]: Interface 'Window' incorrectly extends interface 'GlobalEventHandlers'.
  Types of property 'onload' are incompatible.
    Type '((this: Window, ev: Event) =&gt; any) | null' is not assignable to type '((this: GlobalEventHandlers, ev: Event) =&gt; any) | null'.
      Type '(this: Window, ev: Event) =&gt; any' is not assignable to type '(this: GlobalEventHandlers, ev: Event) =&gt; any'.
        The 'this' types of each signature are incompatible.
          Type 'GlobalEventHandlers' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 141 more.
    at asset:///lib.dom.d.ts:18394:11

TS2430 [ERROR]: Interface 'Window' incorrectly extends interface 'WindowEventHandlers'.
  Types of property 'onunload' are incompatible.
    Type '((this: Window, ev: Event) =&gt; any) | null' is not assignable to type '((this: WindowEventHandlers, ev: Event) =&gt; any) | null'.
      Type '(this: Window, ev: Event) =&gt; any' is not assignable to type '(this: WindowEventHandlers, ev: Event) =&gt; any'.
        The 'this' types of each signature are incompatible.
          Type 'WindowEventHandlers' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 206 more.
    at asset:///lib.dom.d.ts:18394:11

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'self'.
declare var self: Window &amp; typeof globalThis;
            ~~~~
    at asset:///lib.dom.d.ts:19498:13

    'self' was also declared here.
    declare const self: Window &amp; typeof globalThis;
                  ~~~~
        at asset:///lib.deno.window.d.ts:21:15

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'window'.
declare var window: Window &amp; typeof globalThis;
            ~~~~~~
    at asset:///lib.dom.d.ts:19505:13

    'window' was also declared here.
    declare const window: Window &amp; typeof globalThis;
                  ~~~~~~
        at asset:///lib.deno.window.d.ts:20:15

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onload'.
declare var onload: ((this: Window, ev: Event) =&gt; any) | null;
            ~~~~~~
    at asset:///lib.dom.d.ts:19670:13

    'onload' was also declared here.
    declare const onload: ((this: Window, ev: Event) =&gt; any) | null;
                  ~~~~~~
        at asset:///lib.deno.window.d.ts:22:15

TS2451 [ERROR]: Cannot redeclare block-scoped variable 'onunload'.
declare var onunload: ((this: Window, ev: Event) =&gt; any) | null;
            ~~~~~~~~
    at asset:///lib.dom.d.ts:19845:13

    'onunload' was also declared here.
    declare const onunload: ((this: Window, ev: Event) =&gt; any) | null;
                  ~~~~~~~~
        at asset:///lib.deno.window.d.ts:23:15

Found 28 errors.
</code></pre></div>
<p dir="auto">How can I bundle it?</p>