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

Lume fails to import nonexisting cms module #616

Closed
scarf005 opened this issue Jun 15, 2024 · 1 comment
Closed

Lume fails to import nonexisting cms module #616

scarf005 opened this issue Jun 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@scarf005
Copy link
Contributor

scarf005 commented Jun 15, 2024

Version

2.2.1

Platform

linux

What steps will reproduce the bug?

2024-06-15_23-19-37.mp4

initialize lume with default options. or:

deno cache https://deno.land/x/[email protected]/cms/adapters/lume.ts

How often does it reproduce? Is there a required condition?

always happens.

What is the expected behavior?

  1. lume shouldn't require CMS when it's not used.
  2. lume shouldn't import module that does not exist.

What do you see instead?

Module not found "https://deno.land/x/[email protected]/cms/adapters/lume.ts"

output.log

Additional information

No response

@scarf005 scarf005 added the bug Something isn't working label Jun 15, 2024
@oscarotero
Copy link
Member

Yes, sorry for the trouble. This is a breaking change in Lume 2.2.0, that changed the way to import LumeCMS. It's explained here: https://lume.land/blog/posts/lume-2.2.0-luisa-villalta/#cms-import-changes

The solution is to add the lume/cms/ entry to your import maps:

{
  "imports": {
    "lume/": "https://deno.land/x/[email protected]/",
    "lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/[email protected]/"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants