Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coderlkf opened this issue Aug 24, 2022 · 1 comment
Open

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

coderlkf opened this issue Aug 24, 2022 · 1 comment

Comments

@coderlkf
Copy link

我的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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant