deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[Bug]: Relative import path "@olli/kvdex/ext/zod" not prefixed with.... for `jsr` modules

Open waptik opened this issue 3 months ago • 1 comments

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 through deno add. Full paths need to be defined as seperate entry in deno.json for it to work. See here and here

Steps to reproduce

  1. Clone https://github.com/waptik/weak-squirrel-86
  2. Create a new project on deno deploy and point it to the cloned repo
  3. Wait for deployment to complete and voila!

Expected behavior

Relative import for jsr modules defined in deno.json should work without the need to manually assign paths in deno.json or use the full path prefixed with jsr: inside codebase(eg: jsr:@olli/kvdex/ext/zod). Meaning i should be able to safely use @olli/kvdex/ext/zod

Environment

  • Deno version: 1.41.1
  • OS version: windows 11, wsl(ubuntu 22.04), Brave

Possible solution

No response

Additional context

No response

waptik avatar Mar 09 '24 23:03 waptik