nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.

Home Page:https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import.meta.glob as: 'raw' fails

stepanenko3 opened this issue · comments

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.

sorry, related to another package

sorry, related to another package

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

I got same issue. has it been resolved?