question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run example script on latest version of deno

See original GitHub issue

Running the example script has this result:

Compile https://deno.land/x/denotrain@v0.2.0/mod.ts
error: Uncaught TypeError: Cannot resolve extension for "https://raw.githubusercontent.com/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 compile ($deno$/compiler.ts:1316:31)

Initially ran it inside a ts file and so added any types. I tried running this as a js file as well. Very unfamiliar with deno, sorry if this is a deno issue and not a denotrain issue.

EDIT: Running on WSL1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Caesar2011commented, May 14, 2020

It is fixed in https://deno.land/x/denotrain@v0.4.0/mod.ts.

0reactions
Caesar2011commented, May 13, 2020

Error is known. Will be fixed tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation | Manual - Deno
To update a previously installed version of Deno, you can run: deno upgrade. This will fetch the latest release from github.com/denoland/deno/releases, ...
Read more >
error when running: deno run main.js #5280 - GitHub
While trying to check deno today I noticed, the command "deno run main.js" fails but works with "deno run main.ts" or any other...
Read more >
Everything You Need to Know to Get Started with Deno - Telerik
Deno is a simple, modern, and secure runtime for JavaScript and TypeScript. Learn how to get started with it and how it compares...
Read more >
Install application as executable script in Deno | The JS runtimes
Learn how to install an application as executable script in Deno. ... Implicitly using latest version (0.125.0) for https://deno.land/std/http/mod.ts
Read more >
How can I have Deno's std http file_server watch files?
html file, I want the script to re-run when changes are made within the directory, how can I do that? deno run --allow-net...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found