nuxt / icon

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

500 [vite-node] [ERR_LOAD_URL] @iconify/vue #234

Closed RakuThe1 closed 3 months ago

RakuThe1 commented 3 months ago

After updating from the "nuxt-icon" to "@nuxt/icon", I am getting an unknown "500 [vite-node] [ERR_LOAD_URL] @iconify/vue" error.

Can someone please help me how to fix it?

Everything was working fine before upgrading. I tried to reinstall all the node modules as well but the error is still there :(

image

RakuThe1 commented 3 months ago

@antfu Can you please help?

antfu commented 3 months ago

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required

FlorianWerndl commented 3 months ago

@RakuThe1 try npm install --save-dev @iconify/vue

RakuThe1 commented 3 months ago

@RakuThe1 try npm install --save-dev @iconify/vue

It worked. Thank u soo much :)

cyrilf commented 2 months ago

I had the same issue.

To solve it, I simply moved my @nuxt/icon from the devDependencies into the dependecies in my package.json by doing: npm remove @nuxt/icon and then npm install --save @nuxt/icon. Now my dependencies looks like this:

"dependencies": {
    // ...
    "@nuxt/icon": "^1.5.1"
    "nuxt": "^3.13.1"
    "vue": "^3.5.1",
    // ...
  },

And now my package-lock.json correctly contains a "node_modules/@iconify/vue" key, before it was: "node_modules/@nuxt/icon/node_modules/@iconify/vue".