iconoir-icons / iconoir

An open source icons library with 1500+ icons, supporting React, React Native, Flutter, Vue, Figma, and Framer.
https://iconoir.com
MIT License
3.78k stars 163 forks source link

[Vue warn]: injection "Symbol()" not found. when using with Vue and Typescript #399

Open a1eksb opened 5 months ago

a1eksb commented 5 months ago

Prerequisites

Using iconoir (@iconoir/vue: 7.3.0) with vue 3.4.15 and typescript 5.3.3 I get the warning "[Vue warn]: injection "Symbol()" not found." every time import and use a new icon.

Example usage: import {Mail} from '@iconoir/vue'

<Mail width="1em" height="1em" stroke-width="1.5" />

The icons render fine but it would be nice to not have these warnings int he console.

Thanks for providing a fantastic set of icons! :)

Upvote & Fund

Fund with Polar

CeansBzh commented 4 months ago

I am experiencing the same issue without Typescript

shroomlife commented 4 months ago

[Vue warn]: injection "Symbol()" not found.

Same issue here with following packages:

@iconoir/vue 7.4.0
Nuxt 3.10.2
vue 3.4.19

Icons work but Warnings come up...

webfussel commented 3 weeks ago

Issue comes up every time an icon gets rendered, which is quite unpleasent in bigger applications.