denoland / deno_blog

Minimal boilerplate blogging.
MIT License
458 stars 94 forks source link

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

Open tdharris opened 2 months ago

tdharris commented 2 months ago

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 commented 2 months ago

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?

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

import { UserConfig } from "https://esm.sh/@unocss/core@0.61.3";
import presetUno from "https://esm.sh/@unocss/preset-uno@0.61.3";

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