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

Deno can't import std@v0.63.0 #56

Closed
nakleiderer opened this issue Aug 3, 2020 · 0 comments · Fixed by #57
Closed

Deno can't import std@v0.63.0 #56

nakleiderer opened this issue Aug 3, 2020 · 0 comments · Fixed by #57

Comments

@nakleiderer
Copy link
Contributor

nakleiderer commented Aug 3, 2020

Deno can't access imports like this:

import { ... } from 'https://deno.land/std@v0.63.0/fmt/colors.ts';

This results in an error when trying to run a script that uses cliffy:

Download https://deno.land/std@v0.63.0/fmt/colors.ts
error: Import 'https://deno.land/std@v0.63.0/fmt/colors.ts' failed: 403 Forbidden

Local dev environments are not likely to be affected due to caching; however, running scripts on new machines does display this error.

The official Deno docs do not include the "v" in the import. See https://deno.land/std@0.63.0/fmt/colors.ts

Updating imports to use a version without the "v" prefix allows the import to work:

import { ... } from 'https://deno.land/std@0.63.0/fmt/colors.ts';
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

Successfully merging a pull request may close this issue.

1 participant