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

对话过程console一直报warning:Failed to resolve component: NButton #252

Closed
Fanlu91 opened this issue Jun 15, 2023 · 3 comments · Fixed by #268
Closed

对话过程console一直报warning:Failed to resolve component: NButton #252

Fanlu91 opened this issue Jun 15, 2023 · 3 comments · Fixed by #268

Comments

@Fanlu91
Copy link
Contributor

Fanlu91 commented Jun 15, 2023

挺奇怪的问题,没有发现其他相关的异常,就是console一直刷很烦。

前端能力有限,排查了半天也没有找到原因。有没有遇到同样问题的朋友,求指导。

runtime-core.esm-bundler.js:40 [Vue warn]: Failed to resolve component: NButton
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. 
  at <Index key=0 date-time="2023/6/14 16:48:33" text="tell me a joke about ms"  ... > 
  at <Spin show=false > 
  at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > key="/chat" > 
  at <RouterView> 
  at <LayoutContent class="h-full" > 
  at <Layout class="z-40 transition h-full pl-[260px]" has-sider="" > 
  at <Layout onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <MessageProvider> 
  at <NotificationProvider> 
  at <DialogProvider> 
  at <LoadingBarProvider> 
  at <Index> 
  at <ConfigProvider class="h-full" theme=undefined theme-overrides= {}  ... > 
  at <App>
@Kerwin1202
Copy link
Member

是那个界面出现的,以及在提供下 f12 的报错大致看下,能不能定位是哪里 最新的 docker 我没遇到过

@jackywu
Copy link

jackywu commented Jun 20, 2023

@Kerwin1202
Xnip2023-06-20_11-29-02

@Fanlu91
Copy link
Contributor Author

Fanlu91 commented Jun 21, 2023

下午花时间看了下,应该是src\views\chat\components\Message\index.vue 中没有声明对NButton的引用导致的。提交了一个pr解决这个小问题

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

Successfully merging a pull request may close this issue.

3 participants