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

[SideBar] 使用插件按需导入组件控制台告警 #1084

Closed
sunshj opened this issue Sep 13, 2023 · 4 comments · Fixed by #1092
Closed

[SideBar] 使用插件按需导入组件控制台告警 #1084

sunshj opened this issue Sep 13, 2023 · 4 comments · Fixed by #1092
Labels
bug Something isn't working

Comments

@sunshj
Copy link

sunshj commented Sep 13, 2023

tdesign-mobile-vue 版本

1.0.3

重现链接

https://github.com/sunshj/tdesign-mobile-vue-demo

重现步骤

使用unplugin-auto-import与unplugin-vue-components按需导入组件,当引入SideBar侧边栏组件时,控制台出现如下警告:

[Vue warn]: Failed to resolve component: t-badge
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

期望结果

控制台无警告

实际结果

image

框架版本

Vue(3.3.4)

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

👋 @sunshj,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Sep 14, 2023

@sunshj [Vue warn]: Failed to resolve component: t-badge。 你有引入 badge组件吗?

@anlyyao anlyyao added the question Further information is requested label Sep 14, 2023
@sunshj
Copy link
Author

sunshj commented Sep 14, 2023

没有使用badge组件

@anlyyao
Copy link
Collaborator

anlyyao commented Sep 14, 2023

没有使用badge组件

明白了 我处理一下,明天发版带上,着急的话可以暂时先引入badge解决warn

@anlyyao anlyyao added bug Something isn't working and removed question Further information is requested labels Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants