<p dir="auto">Hi,</p>
<p dir="auto">It looks like a bug while Deno doing its import statements parsing or regexp, below is the reproduction code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { parse } from &quot;https://www.unpkg.com/@babel/parser@7.7.5/lib/index.js&quot;;
console.log(parse);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">parse</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://www.unpkg.com/@babel/parser@7.7.5/lib/index.js"</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">parse</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">results:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Compile file:///Users/hsy/ws/deno-js/js.ts
error: Uncaught ImportPrefixMissing: relative import path &quot;a.js&quot; not prefixed with / or ./ or ../ Imported from &quot;https://www.unpkg.com/@babel/parser@7.7.5/lib/index.js&quot;
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:91:10)"><pre class="notranslate"><code class="notranslate">Compile file:///Users/hsy/ws/deno-js/js.ts
error: Uncaught ImportPrefixMissing: relative import path "a.js" not prefixed with / or ./ or ../ Imported from "https://www.unpkg.com/@babel/parser@7.7.5/lib/index.js"
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:91:10)
</code></pre></div>
<p dir="auto">here is the potential being misrecognized statement in that js file:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.raise(id.start, `Dynamic imports require a parameter: import('a.js')`);"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">raise</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">.</span><span class="pl-c1">start</span><span class="pl-kos">,</span> <span class="pl-s">`Dynamic imports require a parameter: import('a.js')`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Does Deno use regexp to match the dynamic import expressions? I think it's  is a pretty unlikely scenario if a syntax parser is applied.</p>
<p dir="auto">please correct me if something wrong</p>
<ul dir="auto">
<li>v0.20.0</li>
<li>Parser doesn't find declarations correctly?</li>
</ul>
<p dir="auto"><strong>[EDITED]</strong></p>
<p dir="auto">Previous example has unrelated mistake but I don' know which code can reproduce error I met.</p>
<p dir="auto">I met this error when I ran  -&gt;  <a href="https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts" rel="nofollow">https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts</a><br>
That can be compiled with deno@v0.19.0. But got error below with v0.20.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ImportPrefixMissing: relative import path &quot;${resp.url}&quot; not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:85:10)"><pre class="notranslate"><code class="notranslate">error: Uncaught ImportPrefixMissing: relative import path "${resp.url}" not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:85:10)
</code></pre></div>