gitFoxCode / nuxt-icons

Module for Nuxt allowing pleasant use of svg icons
192 stars 23 forks source link

Non existing icon causes whole page to fail #32

Closed HerrZatacke closed 1 year ago

HerrZatacke commented 1 year ago

Describe the bug Non existing icon causes whole page to fail. SSR fails with errorLog.ts:4 iconsImport[props.name] is not a function

To Reproduce install version 3.0.0 of nuxt-icons

<nuxt-icon name="something-which-does-not-exist" />

Expected behavior The behavior of version 2.x was fine where instead of an icon some text "undefined" was shown It seems the issue has already been fixed with this commit but it seems it has not been published to npm.

Screenshots n/a

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

gitFoxCode commented 1 year ago

Problem fixed in version 3.1.0