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

error with custom icons #3158

Open
gregorvoinov opened this issue Jan 22, 2025 · 0 comments
Open

error with custom icons #3158

gregorvoinov opened this issue Jan 22, 2025 · 0 comments
Labels
question Further information is requested v3 #1289

Comments

@gregorvoinov
Copy link

Description

Hi,

I want to use my local icons but get this error

Cannot restart nuxt: Cannot read properties of undefined (reading 'attribs')

Image

I have added this to my nuxt.config.js

export default defineNuxtConfig({
  icon: {
    customCollections: [
      {
        prefix: "local",
        dir: "./assets/icons",
      },
    ],
  },

how I use it...

 <UButton
        variant="link"
        icon="i-local-minus"
/>

what I'm doing wrong?

best,
gregor

@gregorvoinov gregorvoinov added question Further information is requested v3 #1289 labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant