<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        req.respond({ body: renderApp(`
        &lt;body&gt;
          &lt;script type=&quot;module&quot;&gt;
            import server from 'https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js';
            console.warn(server)
          &lt;/script&gt;
        &lt;/body&gt;
        `) });"><pre class="notranslate"><code class="notranslate">        req.respond({ body: renderApp(`
        &lt;body&gt;
          &lt;script type="module"&gt;
            import server from 'https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js';
            console.warn(server)
          &lt;/script&gt;
        &lt;/body&gt;
        `) });
</code></pre></div>
<p dir="auto">throws:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Download https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js
error: Uncaught TypeError: Cannot resolve extension for &quot;https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js&quot; with mediaType &quot;Unknown&quot;.
    at getExtension ($deno$/compiler/sourcefile.ts:42:13)
    at new SourceFile ($deno$/compiler/sourcefile.ts:70:22)
    at processImports ($deno$/compiler/imports.ts:122:45)
    at async Object.processImports ($deno$/compiler/imports.ts:125:7)
    at async compile (file:///home/runner/work/deno/deno/cli/js/compiler.ts:144:31)
    at async tsCompilerOnMessage (file:///home/runner/work/deno/deno/cli/js/compiler.ts:359:22)
    at async workerMessageRecvCallback ($deno$/runtime_worker.ts:73:9)"><pre class="notranslate"><code class="notranslate">Download https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js
error: Uncaught TypeError: Cannot resolve extension for "https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js" with mediaType "Unknown".
    at getExtension ($deno$/compiler/sourcefile.ts:42:13)
    at new SourceFile ($deno$/compiler/sourcefile.ts:70:22)
    at processImports ($deno$/compiler/imports.ts:122:45)
    at async Object.processImports ($deno$/compiler/imports.ts:125:7)
    at async compile (file:///home/runner/work/deno/deno/cli/js/compiler.ts:144:31)
    at async tsCompilerOnMessage (file:///home/runner/work/deno/deno/cli/js/compiler.ts:359:22)
    at async workerMessageRecvCallback ($deno$/runtime_worker.ts:73:9)
</code></pre></div>
<p dir="auto">import in string should not be evaluated</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>