Open waptik opened 7 months ago
Deno adds a magic trailing-slash mapping for npm:
and jsr:
schemes behind the scenes, it appears that Deploy doesn't yet support this, you can add it manually yourself...
{
"imports": {
"@olli/kvdex": "jsr:@olli/kvdex@^0.35.2",
"@olli/kvdex/": "jsr:/@olli/kvdex@^0.35.2/"
}
}
Note the slash after jsr:
as well as at the end.
Problem description
It seems like the deno engine on deploy finds it hard to locate relative paths of jsr modules defined inside
imports
of deno.json that were added throughdeno add
. Full paths need to be defined as seperate entry in deno.json for it to work. See here and hereSteps to reproduce
Expected behavior
Relative import for jsr modules defined in
deno.json
should work without the need to manually assign paths indeno.json
or use the full path prefixed withjsr:
inside codebase(eg:jsr:@olli/kvdex/ext/zod
). Meaning i should be able to safely use@olli/kvdex/ext/zod
Environment
Possible solution
No response
Additional context
No response