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

v0.25.4 error: unable to parse import map JSON #131

Closed
bradeneast opened this issue Jul 21, 2021 · 4 comments
Closed

v0.25.4 error: unable to parse import map JSON #131

bradeneast opened this issue Jul 21, 2021 · 4 comments

Comments

@bradeneast
Copy link

After upgrading to v0.25.4, I'm getting an error when running any lume command (see video).
There doesn't seem to be anything in the changelog that would have caused this.

Lume.0.25.4.import.map.error.mp4
@oscarotero
Copy link
Member

mmm, that's weird. We have made some changes here (basically removed the base64 encode to the url). Let me check in windows.

@oscarotero
Copy link
Member

Ok, I just released v0.25.5. Seems like in Windows the import map argument is not properly escaped by deno.
I'm closing this. Feel free to reopen if it's not fixed.

@kuspoes
Copy link

kuspoes commented Jul 22, 2021

I tried to upgrade lume to 0.25.5 but got this error:

$ deno upgraded && lume upgrade
....
Download https://deno.land/x/lume@v0.25.5/import_map.json
error: Unable to load 'https://deno.land/x/lume@v0.25.5/import_map.json' import map

Caused by:
    Import 'https://deno.land/x/lume@v0.25.5/import_map.json' failed: 404 Not Found

Update successful! You’re using the latest version of lume: v0.25.5!
See the changes in https://github.com/lumeland/lume/blob/v0.25.5/CHANGELOG.md

$ lume --version
🔥lume v0.20.2

$ lume -s
Download https://deno.land/x/lume@v0.20.2/plugins/code_highlight.ts
Download https://deno.land/x/lume@v0.20.2/plugins/date.ts
Download https://deno.land/x/lume@v0.20.2/plugins/markdown.ts
lume: Import 'https://deno.land/x/lume@v0.20.2/plugins/code_highlight.ts' failed: 404 Not Found
    at file:///home/kusaeni/project/deno/responsive/_config.js:2:0
TypeError: Import 'https://deno.land/x/lume@v0.20.2/plugins/code_highlight.ts' failed: 404 Not Found
    at file:///home/kusaeni/project/deno/responsive/_config.js:2:0
    at async buildSite (https://deno.land/x/lume@v0.20.2/cli/utils.js:19:19)
    at async Module.run (https://deno.land/x/lume@v0.20.2/cli/build.js:46:16)
    at async maybeRun (https://deno.land/x/lume@v0.20.2/cli.js:108:28)
    at async cli (https://deno.land/x/lume@v0.20.2/cli.js:116:5)
    at async https://deno.land/x/lume@v0.20.2/cli.js:55:5

Ubuntu 20.04.2 LTS - WSL

removing lume and installing the latest version solved this problem.

@oscarotero
Copy link
Member

Hi @kuspoes.
Yes, It can happens on upgrade from some old versions.
Reinstall again (deno run -A https://deno.land/x/lume/install.ts) solve the problem.
Version 1.0.0 will be releases soon, and after that there won't be more backward breaking changes.

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