You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my source files mistakenly had the following import:
import { HelloResponse } from "c:/Users/Dylan/Desktop/kinto-http.deno.ts/kinto-http/types";
When compiling, the following error was given:
Compile file:///C:/Users/Dylan/Desktop/kinto-http.deno.ts/test.ts
error: Uncaught Error: Unsupported scheme "c" for module "c:/Users/Dylan/Desktop/kinto-http.deno.ts/kinto-http/types". Supported schemes: [
"http",
"https",
"file",
]
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10)
at async processImports ($deno$/compiler/imports.ts:117:23)
at async processImports ($deno$/compiler/imports.ts:125:7)
at async processImports ($deno$/compiler/imports.ts:125:7)
at async processImports ($deno$/compiler/imports.ts:125:7)
at async Object.processImports ($deno$/compiler/imports.ts:125:7)
at async compile (file:///D:/a/deno/deno/cli/js/compiler.ts:144:31)
at async tsCompilerOnMessage (file:///D:/a/deno/deno/cli/js/compiler.ts:359:22)
at async workerMessageRecvCallback ($deno$/runtime_worker.ts:73:9)
It would have been really nice if Deno had reported the original filename and line number containing the invalid import instead of just reporting the filename being executed.
The text was updated successfully, but these errors were encountered:
I did not find info about not being able to use "C:/somedir/..." in Deno imports on Windows.
Is this a bug or some expected behaviour?
If it's expected behaviour it is inconsistent with e.g. readFile
letfile='c:/tmp/mod.ts';Deno.readTextFileSync(file);// worksawaitimport(file);// error: thread 'main' panicked at 'internal error: entered unreachable code', cli\state.rs:492:12 // note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
One of my source files mistakenly had the following import:
import { HelloResponse } from "c:/Users/Dylan/Desktop/kinto-http.deno.ts/kinto-http/types";
When compiling, the following error was given:
It would have been really nice if Deno had reported the original filename and line number containing the invalid import instead of just reporting the filename being executed.
The text was updated successfully, but these errors were encountered: