Cannot run example script on latest version of deno
See original GitHub issueRunning 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is fixed in
https://deno.land/x/denotrain@v0.4.0/mod.ts
.Error is known. Will be fixed tomorrow.