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

Latest version fails #6

Closed
probins opened this issue Nov 13, 2020 · 5 comments
Closed

Latest version fails #6

probins opened this issue Nov 13, 2020 · 5 comments

Comments

@probins
Copy link
Contributor

probins commented Nov 13, 2020

Import 'https://cdn.skypack.dev/-/asap@v2.0.6-vAazu0geAa8UqzgbsaB8/dist=es2020,mode=raw/^2.0.6' failed: 404 Not Found

@oscarotero
Copy link
Member

Mmm, that's weird. Let me investigate what package is using this file

@oscarotero
Copy link
Member

Ok, found the bug. It's related with a dependency of Denjucks (the Deno version of Nunjucks) that is failing.
I've fixed it cloning the repo and fixing the bugs https://github.com/oscarotero/denjucks

Thanks for warning

@probins
Copy link
Contributor Author

probins commented Nov 13, 2020

I'm a bit confused here.

I found this problem when running a GitLab job, which just uses:
deno run -q --unstable --allow-read --allow-write --allow-net https://deno.land/x/lume/cli.js
so it always uses the latest version. This now works fine.

However, I then tried on my own machine. I ran
deno install -f -r --unstable --allow-read --allow-write --allow-net https://deno.land/x/lume/cli.js
to update to the latest version. I then run lume -v which shows 0.9.3. However, when I then run lume, I get the same error as before

Download https://cdn.pika.dev/asap/^2.0.6
Download https://cdn.skypack.dev/asap/^2.0.6
Download https://cdn.skypack.dev/-/asap@v2.0.6-vAazu0geAa8UqzgbsaB8/dist=es2020,mode=raw/^2.0.6
error: Uncaught (in promise) TypeError: Import 'https://cdn.skypack.dev/-/asap@v2.0.6-vAazu0geAa8UqzgbsaB8/dist=es2020,mode=raw/^2.0.6' failed: 404 Not Found
    at https://raw.githubusercontent.com/thegamingninja/denjucks/master/src/deps.js:3:0

So it looks like it's still using the old version of denjucks.

@oscarotero
Copy link
Member

Yes, I didn't find a good way to upgrade lume (the new version has a lume --upgrade command) but it needs more work.
The best way is delete the cache of deno: Run deno info and then a rm -rf {DENO_DIR location}

@probins
Copy link
Contributor Author

probins commented Nov 14, 2020

seems to be an issue with Deno. Removing the entire cache does work, but it's a bit drastic ☹️ There are several issues relating to install on Deno's repo, so perhaps this will be improved in future versions. I'll close this, as the Lume issue is resolved, even if re-installing doesn't seem to upgrade the cache properly.

@probins probins closed this as completed Nov 14, 2020
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

2 participants