<p dir="auto">Summary:<br>
Some code which installs and runs successfully actually fails with an error when used with <code class="notranslate">deno compile</code>.</p>
<p dir="auto">Details:<br>
Trying out <code class="notranslate">deno compile</code> for task running tool project: <a href="https://deno.land/x/dnit" rel="nofollow">https://deno.land/x/dnit</a><br>
Using current deno version 1.7.5</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno compile --allow-read --allow-write --allow-run --unstable https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Check https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Bundle https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Compile https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Emit dnit

$ ./dnit
error: ReferenceError: normalize is not defined
    at file://$deno$/bundle.js:3749:20"><pre class="notranslate"><code class="notranslate">$ deno compile --allow-read --allow-write --allow-run --unstable https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Check https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Bundle https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Compile https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Emit dnit

$ ./dnit
error: ReferenceError: normalize is not defined
    at file://$deno$/bundle.js:3749:20
</code></pre></div>
<p dir="auto">The same code runs ok when used with <code class="notranslate">deno install</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno install --allow-read --allow-write --allow-run --unstable -f --name dnit https://deno.land/x/dnit@dnit-v1.11.0/main.ts
✅ Successfully installed dnit
/home/pault/.deno/bin/dnit
$ dnit --version
dnit 1.11.0"><pre class="notranslate"><code class="notranslate">$ deno install --allow-read --allow-write --allow-run --unstable -f --name dnit https://deno.land/x/dnit@dnit-v1.11.0/main.ts
✅ Successfully installed dnit
/home/pault/.deno/bin/dnit
$ dnit --version
dnit 1.11.0
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.7.5 (release, x86_64-unknown-linux-gnu)
v8 9.0.123
typescript 4.1.4"><pre lang="$" class="notranslate"><code class="notranslate">deno 1.7.5 (release, x86_64-unknown-linux-gnu)
v8 9.0.123
typescript 4.1.4
</code></pre></div>
<p dir="auto">By the looks of it it's a duplicate of keywords/issues:<br>
<code class="notranslate">String.prototype.normalize()</code><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="422753685" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1968" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1968/hovercard" href="https://github.com/denoland/deno/issues/1968">#1968</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'worker-0' panicked at 'not yet implemented: Worker are currently not supported in standalone binaries', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.15.3/standalone.rs:208:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"><pre class="notranslate"><code class="notranslate">thread 'worker-0' panicked at 'not yet implemented: Worker are currently not supported in standalone binaries', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.15.3/standalone.rs:208:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</code></pre></div>
<p dir="auto">deno v1.15.3</p>