Carlos Scheidegger
Carlos Scheidegger
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
Import map diagnostics:
- Invalid top-level key "vendor". Only "imports" and "scopes" can be present.
error: Relative import path "archive/tar" not prefixed with / or ./ or ../ and not in import map from "file:///Users/cscheid/repos/github/quarto-dev/quarto-cli/src/publish/common/bundle.ts"
Import map diagnostics:
- Invalid top-level key "vendor". Only "imports" and "scopes" can be present.
error: Relative import path "archive/tar" not prefixed with / or ./ or ../ and not in import map from "file:///Users/cscheid/repos/github/quarto-dev/quarto-cli/src/publish/common/bundle.ts"
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
And then that syntax you suggest fails with
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
We need deno vendor because we need deno bundle (yes, I know that's also deprecated)
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
I apologize - I should have been clearer wrt deno vendor, I now see I only mentioned that in the other post
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
I get
error: Relative import path "archive/tar" not prefixed with / or ./ or ../ and not in import map from "file:///Users/cscheid/repos/github/quarto-dev/quarto-cli/src/publish/common/bundle.ts"
error: Relative import path "archive/tar" not prefixed with / or ./ or ../ and not in import map from "file:///Users/cscheid/repos/github/quarto-dev/quarto-cli/src/publish/common/bundle.ts"
Note that this is specifically a deno vendor question
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
or even import { Tar } from "archive/tar", which is the point of my original question above.
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
But then you can't do eg import * as tar from "archive/tar";
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
that's on 1.46.3
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
the message implies that the import map code is expecting a URL and is getting confused by a jsr: prefix
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
error: Failed to resolve the specifier ""archive/tar"" as its after-prefix
portion ""tar"" could not be URL-parsed relative to the URL prefix
"jsr:@std/archive@^0.224.0/" mapped to by the prefix "archive/"
error: Failed to resolve the specifier ""archive/tar"" as its after-prefix
portion ""tar"" could not be URL-parsed relative to the URL prefix
"jsr:@std/archive@^0.224.0/" mapped to by the prefix "archive/"
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
With "archive/": "jsr:@std/archive@^0.224.0/", I get a different error:
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
That is the error with the "archive": "jsr:@std/archive@^0.224.0", entry in the import map
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
error: Relative import path "archive/tar" not prefixed with / or ./ or ../ and not in import map from "file:///Users/cscheid/repos/github/quarto-dev/quarto-cli/src/publish/common/bundle.ts"
error: Relative import path "archive/tar" not prefixed with / or ./ or ../ and not in import map from "file:///Users/cscheid/repos/github/quarto-dev/quarto-cli/src/publish/common/bundle.ts"
28 replies
DDeno
Created by Carlos Scheidegger on 9/18/2024 in #help
`deno vendor`: help with import_map.json changes from deno.land to jsr?
That doesn't work:
28 replies