Uncaught (in promise) TypeError: t is not a function
coderlkf opened this issue · comments
coderlkf commented
我的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
coderlkf commented
补充一下,我仅仅在我的页面里面使用了如下代码
<v-icon name="beer"/>