<p dir="auto">Ran into this error while working on <code class="notranslate">fp-ts</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% cat import-in-comment.ts 
function hello(who: string): string {
  return `hello ${who}`;
}
/**
 * `
 * import { scanLeft } from 'some/path/in/comment.ts'
 */

% deno import-in-comment.ts
Compile file:///Users/jaka/Desktop/import-in-comment.ts
error: Uncaught URIError: relative import path &quot;some/path/in/comment.ts&quot; not prefixed with / or ./ or ../ Imported from &quot;file:///Users/jaka/Desktop/import-in-comment.ts&quot;
► $deno$/errors.ts:35:13
    at constructError ($deno$/errors.ts:35:13)
    at unwrapResponse ($deno$/dispatch_json.ts:41:12)
    at sendSync ($deno$/dispatch_json.ts:70:10)
    at resolveModules ($deno$/compiler_imports.ts:70:10)
    at processImports ($deno$/compiler_imports.ts:172:27)
    at processImports ($deno$/compiler_imports.ts:181:13)"><pre class="notranslate"><code class="notranslate">% cat import-in-comment.ts 
function hello(who: string): string {
  return `hello ${who}`;
}
/**
 * `
 * import { scanLeft } from 'some/path/in/comment.ts'
 */

% deno import-in-comment.ts
Compile file:///Users/jaka/Desktop/import-in-comment.ts
error: Uncaught URIError: relative import path "some/path/in/comment.ts" not prefixed with / or ./ or ../ Imported from "file:///Users/jaka/Desktop/import-in-comment.ts"
► $deno$/errors.ts:35:13
    at constructError ($deno$/errors.ts:35:13)
    at unwrapResponse ($deno$/dispatch_json.ts:41:12)
    at sendSync ($deno$/dispatch_json.ts:70:10)
    at resolveModules ($deno$/compiler_imports.ts:70:10)
    at processImports ($deno$/compiler_imports.ts:172:27)
    at processImports ($deno$/compiler_imports.ts:181:13)
</code></pre></div>
<p dir="auto">Some rogue regexp somewhere?</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>