kidonng / unocss-preset-daisy

UnoCSS preset for daisyUI
https://unocss-preset-daisy.vercel.app
MIT License
220 stars 19 forks source link

Nuxt typescript error #34

Closed Rednas83 closed 8 months ago

Rednas83 commented 8 months ago

With Nuxt I get a typescript error in the nuxt.config file after exactly following the installation instructions. The package manager that was used is pnpm

Tried:

nuxt.config.ts image package.json

    "nuxt": "^3.8.0",
    "@kidonng/daisyui": "2.51.3",
    "@unocss/reset": "^0.57.2",
    "daisyui": "^3.9.4",
    "unocss": "^0.57.2",
    "unocss-preset-daisy": "^7.0.0",
kidonng commented 8 months ago

Cannot reproduce. Make sure your dependencies are up to date without version mismatch.

Also, @kidonng/daisyui has been unnecessary since v3.

Rednas83 commented 8 months ago

Uninstalled @kidonng/daisyui but still no daisyui styles.

Tried: <div class="alert-success">alert-success</div> returns image

Tried: <div class="alert alert-success">alert-success</div> returns image

Tried:

`<div class="r-2">alert-success</div>`
.r-2 {
  @apply border;
  @apply border-black;
  @apply alert-success;
  @apply text-center;
}

returns image

Is there a working playground for nuxt? It did work in the past but at some point not anymore😕