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

UnoCSS Example - Internal server error: Cannot read properties of undefined (reading 'join') #147

Open
tdharris opened this issue Jul 9, 2024 · 1 comment

Comments

@tdharris
Copy link

tdharris commented Jul 9, 2024

Unsure what to import or how to configure UnoCSS here for Deno in context of blog()

I would greatly appreciate any guidance on:

  1. How to correctly import UnoCSS in a Deno project.
  2. How to create a UnoCSS configuration file that's compatible with Deno and the blog().

Thank you very much for your time and assistance.

@tdharris
Copy link
Author

tdharris commented Jul 9, 2024

The closest I am getting is with the following error and it seems related to the version of unocss, error appears with latest (0.61.3) :

Internal server error: Cannot read properties of undefined (reading 'join')

Is there perhaps a version deno blog works with?

  • unocss 0.61.3 interface UserConfig<Theme extends object = object>
  • unocss 0.48.5 interface UserConfig<Theme extends {} = {}>
  • deno blog UserConfig<{}>

It seems like anything after 0.48.5 is broken, starting with 0.49.0.

import { UserConfig } from "https://esm.sh/@unocss/[email protected]";
import presetUno from "https://esm.sh/@unocss/[email protected]";

export default <UserConfig>{
  presets: [presetUno()],
}

@tdharris tdharris changed the title UnoCSS Example UnoCSS Example - Internal server error: Cannot read properties of undefined (reading 'join') Aug 8, 2024
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

1 participant