babakfp
babakfp2mo ago

Incorrect 404 error when importing an explicit version of a package

Hi 👋 I get this error: "Implicitly using latest version (v1.5.2) for https://deno.land/x/cheetah/mod.ts" So, I change the import URL to this: https://deno.land/x/cheetah@1.5.2/mod.ts And now I get a 404 error package not found! Another thing about this package is that different repos are set to different versions! And the repo for the latest version is archived. https://deno.land/x/cheetah@v1.5.2 https://deno.land/x/cheetah@v1.5.0
3 Replies
babakfp
babakfp2mo ago
What! I just realized what is going on! v So, this doesn't work (doesn't have v after @): https://deno.land/x/cheetah@1.5.2 but this one have the v and it works: https://deno.land/x/cheetah@v1.5.2 but this other package doesn't have the v and it works! https://deno.land/std@0.221.0 WHAT!
Leokuma
Leokuma2mo ago
It's the module author who decides the version format they want to use. They can prefix it with v or anything else. They can use rc for "release candidate", alpha, beta and all sorts of different patterns This one for example is tagged v0.1.41-alpha-artifacts: https://deno.land/x/deno_dom@v0.1.41-alpha-artifacts
babakfp
babakfp2mo ago
Thanks for the explanation 👍