Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running app with URL import #755

Closed
sandrodw3 opened this issue Oct 15, 2024 · 2 comments
Closed

Error running app with URL import #755

sandrodw3 opened this issue Oct 15, 2024 · 2 comments

Comments

@sandrodw3
Copy link

Hi! I have this in my deno.json:

"cliffy/command": "https://deno.land/x/cliffy@v1.0.0-rc.4/command/mod.ts",
"cliffy/prompt": "https://deno.land/x/cliffy@v1.0.0-rc.4/prompt/mod.ts",

The thing is, when trying to update to rc.7, by changing it to:

"cliffy/command": "https://deno.land/x/cliffy@v1.0.0-rc.7/command/mod.ts",
"cliffy/prompt": "https://deno.land/x/cliffy@v1.0.0-rc.7/prompt/mod.ts",

I get this error when running the app: Relative import path "@cliffy/internal/runtime/get-env" not prefixed with / or ./ or ../ and not in import map from "https://deno.land/x/cliffy@v1.0.0-rc.7/command/command.ts"

I also get the error if running the example in the web: deno run --allow-net=localhost:8080,deno.land https://deno.land/x/cliffy@v1.0.0-rc.7/examples/command.ts

The error doesn't happen if using jsr: jsr:@cliffy/command@1.0.0-rc.7

Is this expected or do I have to change something? I have tried removing deno cache (I actually removed deno completely and installed it again) and it doesn't solve it.

Thanks in advance!

@kyoh86
Copy link

kyoh86 commented Nov 2, 2024

I faced the same issue. @c4spar any progress on this?

@c4spar
Copy link
Owner

c4spar commented Nov 5, 2024

cliffy is now published on jsr since rc.5. but i forgot to remove the webhook and accidentally published rc.6 and rc.7 again on deno.land.

So, for versions <= rc.4 use deno.land and for versions >= rc.5 use jsr.

@c4spar c4spar closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants