Justineo / vue-awesome

Awesome SVG icon component for Vue.js, built-in with Font Awesome icons.

Home Page:https://justineo.github.io/vue-awesome/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught (in promise) TypeError: t is not a function

coderlkf opened this issue · comments

我的vue是最新的3.2.13,按照文档,我安装了vue-awesome
npm install vue-awesome --force
然后在main.js中导入,并添加组件

import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'

const app = createApp(App)
app.component('v-icon', Icon)
app.mount('#app')

但当我使用的时候,控制台输出了错误
Uncaught (in promise) TypeError: t is not a function

补充一下,我仅仅在我的页面里面使用了如下代码
<v-icon name="beer"/>