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

Unable to start serve or cms tasks #3

Closed
dsasko opened this issue Oct 17, 2024 · 5 comments · Fixed by #4
Closed

Unable to start serve or cms tasks #3

dsasko opened this issue Oct 17, 2024 · 5 comments · Fixed by #4
Labels
bug Something isn't working

Comments

@dsasko
Copy link

dsasko commented Oct 17, 2024

On a freshly installed Lume with Shirhara theme I get an error when trying to start serve or cms tasks.

OS: MacOS v15.0.1
Deno: v2.0.0
Lume: v2.3.3

Steps to reproduce

  1. > deno run -A https://lume.land/init.ts
  2. > (install a theme)
  3. > (_config.ts)
  4. > (Shiraha)
  5. > deno task cms or > deno task serve
  6. Observe error in terminal

Error message for deno task cms

error: Uncaught (in worker "") (in promise) TypeError: Module not found "https://deno.land/x/[email protected]/cms.ts".
    at https://deno.land/x/[email protected]/_cms.ts:1:21
  const mod = await import(toFileUrl(cmsConfig).href);
              ^
    at async build (https://deno.land/x/[email protected]/cli/cms_worker.ts:35:15)
error: Uncaught (in promise) Error: Unhandled error in child worker.
    at Worker.#pollControl (ext:runtime/11_workers.js:204:19)
    at eventLoopTick (ext:core/01_core.js:175:7)

Error message for deno task serve

error: Uncaught (in worker "") (in promise) TypeError: Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.

import meta from "../deno.json" assert { type: "json" };

  at https://deno.land/x/[email protected]/src/ffi.ts:13:1

    const mod = await import(url);
                ^
    at async createSite (https://deno.land/x/[email protected]/cli/utils.ts:26:17)
    at async buildSite (https://deno.land/x/[email protected]/cli/utils.ts:45:16)
    at async build (https://deno.land/x/[email protected]/cli/build_worker.ts:35:16)
error: Uncaught (in promise) Error: Unhandled error in child worker.
    at Worker.#pollControl (ext:runtime/11_workers.js:204:19)
    at eventLoopTick (ext:core/01_core.js:175:7)
@kwaa
Copy link
Member

kwaa commented Oct 17, 2024

The cms entry was removed in the new version of Lume. I will update later.

@kwaa kwaa added the bug Something isn't working label Oct 17, 2024
@kwaa kwaa closed this as completed in #4 Oct 20, 2024
@kwaa
Copy link
Member

kwaa commented Oct 20, 2024

This issue should have been fixed.
I can't test it in detail now, so feel free to reopen it if you still have problems.

@dsasko
Copy link
Author

dsasko commented Oct 20, 2024

Sorry but it seems both problems are still present.

I deleted the lume installation folder and tried installing it from scratch again. I'm not quite sure if there is some caching going on but just to make sure everything is aligned here is the imports section from the json config:

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

@kwaa
Copy link
Member

kwaa commented Oct 21, 2024

Sorry but it seems both problems are still present.

Oops... I forgot to release a new version.

@kwaa
Copy link
Member

kwaa commented Oct 21, 2024

v0.1.0-alpha.6 has been released.

  "imports": {
    "lume/": "https://deno.land/x/[email protected]/",
-   "shiraha/": "https://deno.land/x/[email protected]/",
+   "shiraha/": "https://deno.land/x/[email protected]/",
-   "shiraha/jsx-runtime": "https://deno.land/x/[email protected]/jsx-runtime.ts",
+   "shiraha/jsx-runtime": "https://deno.land/x/[email protected]/jsx-runtime.ts",
    "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

Successfully merging a pull request may close this issue.

2 participants