nuxt / icon

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

import.meta.glob as: 'raw' fails #145

Closed stepanenko3 closed 3 months ago

stepanenko3 commented 3 months ago

Describe the bug

WARN The glob option "as" has been deprecated in favour of "query". Please update as: 'raw' to query: '?raw', import: 'default'.

nuxt-icon.vue:23

    const iconsImport = import.meta.glob('assets/icons/**/**.svg', {
      as: 'raw',
      eager: false
    })

When removing the { as: raw }, the error disappears.

stepanenko3 commented 3 months ago

sorry, related to another package

mrc-bsllt commented 3 months ago

sorry, related to another package

I got the same warning, what was it due to?

robert-luoqing commented 2 months ago

I got same issue. has it been resolved?