<p dir="auto">Compiling dprint-plugin-typescript v0.29.1<br>
error[E0308]: mismatched types<br>
--&gt; /home/l/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.3.1/main.rs:554:7<br>
|<br>
554 |       syntax,<br>
|       ^^^^^^ expected enum <code class="notranslate">swc_ecma_parser::Syntax</code>, found a different enum <code class="notranslate">swc_ecma_parser::Syntax</code><br>
|<br>
= note: perhaps two different versions of crate <code class="notranslate">swc_ecma_parser</code> are being used?</p>
<p dir="auto">error[E0308]: mismatched types<br>
--&gt; /home/l/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.3.1/main.rs:561:60<br>
|<br>
561 |       .parse_with_reexports(&amp;module_specifier.to_string(), syntax)<br>
|                                                            ^^^^^^ expected enum <code class="notranslate">swc_ecma_parser::Syntax</code>, found a different enum <code class="notranslate">swc_ecma_parser::Syntax</code><br>
|<br>
= note: perhaps two different versions of crate <code class="notranslate">swc_ecma_parser</code> are being used?</p>
<p dir="auto">error[E0308]: mismatched types<br>
--&gt; /home/l/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.3.1/lint.rs:173:13<br>
|<br>
173 |     .syntax(syntax)<br>
|             ^^^^^^ expected enum <code class="notranslate">swc_ecma_parser::Syntax</code>, found a different enum <code class="notranslate">swc_ecma_parser::Syntax</code><br>
|<br>
= note: perhaps two different versions of crate <code class="notranslate">swc_ecma_parser</code> are being used?</p>
<p dir="auto">error[E0609]: no field <code class="notranslate">filename</code> on type <code class="notranslate">deno_lint::diagnostic::Location</code><br>
--&gt; /home/l/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.3.1/lint.rs:228:21<br>
|<br>
228 |         &amp;d.location.filename,<br>
|                     ^^^^^^^^ unknown field<br>
|<br>
= note: available fields are: <code class="notranslate">line</code>, <code class="notranslate">col</code></p>
<p dir="auto">error[E0609]: no field <code class="notranslate">filename</code> on type <code class="notranslate">&amp;deno_lint::diagnostic::Location</code><br>
--&gt; /home/l/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.3.1/lint.rs:291:39<br>
|<br>
291 |   return format!("{}:{}:{}", location.filename, location.line, location.col);<br>
|                                       ^^^^^^^^ unknown field<br>
|<br>
= note: available fields are: <code class="notranslate">line</code>, <code class="notranslate">col</code></p>
<p dir="auto">error: aborting due to 5 previous errors</p>
<p dir="auto">Some errors have detailed explanations: E0308, E0609.<br>
For more information about an error, try <code class="notranslate">rustc --explain E0308</code>.<br>
error: failed to compile <code class="notranslate">deno v1.3.1</code>, intermediate artifacts can be found at <code class="notranslate">/tmp/cargo-installzzCTFN</code></p>
<p dir="auto">Caused by:<br>
could not compile <code class="notranslate">deno</code>.</p>
<p dir="auto">I'm getting a compilation error when importing fromFileUrl  from "<a href="https://deno.land/std@0.51.0/path/posix.ts" rel="nofollow">https://deno.land/std@0.51.0/path/posix.ts</a>"</p>
<p dir="auto">My trivial test case is:</p>
<p dir="auto">import { fromFileUrl } from "<a href="https://deno.land/std@0.51.0/path/posix.ts" rel="nofollow">https://deno.land/std@0.51.0/path/posix.ts</a>";<br>
import { CHAR_FORM_FEED } from "./deno_cache/deps/https/deno.land/deca9362afe2080ad38d09cee2792ec9c8b8acc7ed9b0ceeee1049a441ad0dd4"</p>
<p dir="auto">let u: URL = new URL("");</p>
<p dir="auto">console.log(fromFileUrl(u));</p>
<p dir="auto">posix.ts does not build and gets error</p>
<p dir="auto">TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.<br>
Type 'URL' is not assignable to type 'string'.<br>
return new URL(url).pathname;<br>
~~~<br>
at <a href="https://deno.land/std@0.51.0/path/posix.ts:433:18" rel="nofollow">https://deno.land/std@0.51.0/path/posix.ts:433:18</a></p>
<p dir="auto">what am I doing wrong. Is there a Deno discussion group I could use to discuss such problems before filing an issue like this?</p>