Deno imports no longer working in v 1.4 #8521
-
DescriptionI just upgraded quarto v1.3 to quarto 1.4 and I'm now getting an error when trying to run a .ts script. (base) MacBookPro:deno-reprex andrewbray$ quarto run test-script.ts
error: Specifier not found in cache: "https://deno.land/[email protected]/encoding/yaml.ts", --cached-only is specified.
at file:///Users/andrewbray/Desktop/deno-reprex/test-script.ts:1:23 This is in a minimal repo that is the boilerplate website plus a import { parse } from "https://deno.land/std/encoding/yaml.ts";
const config = parse(Deno.readTextFileSync("_quarto.yml")); Which is the example taken from the quarto docs. Version info:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
This comment has been hidden.
This comment has been hidden.
-
@andrewpbray: Oh, actually we did do it. The issue is that deno changed their stdlib in a way that we can't actually paper over. You need to import from a different path, unfortunately:
We don't document these changes because we don't actually know it ourselves. As far as I can tell, there's no change log in deno's stdlib that describes the path or API changes :( |
Beta Was this translation helpful? Give feedback.
@andrewpbray: Oh, actually we did do it. The issue is that deno changed their stdlib in a way that we can't actually paper over.
You need to import from a different path, unfortunately:
We don't document these changes because we don't actually know it ourselves. As far as I can tell, there's no change log in deno's stdlib that describes the path or API changes :(