nuxt / icon

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

ERROR Could not load \node_modules\@iconify\vue\dist\iconify #49

Closed glebsergeevich closed 1 year ago

glebsergeevich commented 1 year ago

Is it not enough to use documentation steps to use it?

https://nuxt.com/modules/icon#setup-%EF%B8%8F

  //package.json
  "devDependencies": {
    "nuxt-icon": "^0.2.10",
  },
    //nuxt.config.ts
    modules: [
        'nuxt-icon',
    ],

when I use yarn generate I got an error

ERROR Could not load \node_modules\@iconify\vue\dist\iconify

if I install it by yarn add --dev @iconify/vue it's doesn't help

when I use yarn dev I have no any issue

glebsergeevich commented 1 year ago

my mistake. my IDE imported this automatically @iconify\vue\dist\iconify when I wrote the code, I didn't notice this line in one of the components because I didn't write it

Alzy commented 1 year ago

I don't understand. What was the fix? I am currently facing this exact error

glebsergeevich commented 1 year ago

Look at the top of the Githubissues.

  • Githubissues is a development platform for aggregating issues.