nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.
https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue
MIT License
868 stars 37 forks source link

Cannot read properties of undefined (reading 'aliases') #114

Closed Sass2221 closed 8 months ago

Sass2221 commented 8 months ago

version nuxt-icon: 0.6.0 (last update) version nuxt: 3.8.0

I'm getting this error: Cannot read properties of undefined (reading 'aliases') I rolled back 0.5.0 version. and it worked. don`t bugs

JohnCampionJr commented 8 months ago

just wasted an hour trying to find this....workaround is to make an app.config.ts with nuxtIcon: {}

Cause is here: https://github.com/nuxt-modules/icon/blob/7d9bcf31359ce0a3941f29ea596e63e7a34dc14d/src/runtime/Icon.vue#L32

MagmaBlock commented 8 months ago

meet a same problem

notflip commented 8 months ago

Solution for now - Create a new file app.config.ts in the root, add

export default defineAppConfig({
  nuxtIcon: {},
})
skribascode commented 8 months ago

@notflip Thanks, this solution working !

mathix420 commented 8 months ago

Seems to be fixed now https://github.com/nuxt-modules/icon/releases/tag/v0.6.1