Skip to content

[Bug] 在electron中使用@lobehub/ui无法打开 #363

Open
@239573049

Description

@239573049

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Other

🐛 问题描述 | Bug Description

import {
    Markdown
} from '@lobehub/ui'


        <div className="message-bubble assistant-message-bubble">
          <Markdown className="message-text">
            {content}
          </Markdown>
        </div>

全局代码中只有这个地方使用了lobeui组件就无法打开界面,以下是错误,当我删除这个引用则正常打开

chunk-TRUV76VP.js?v=7090e21b:521 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280651826:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)
printWarning @ chunk-TRUV76VP.js?v=7090e21b:521
error @ chunk-TRUV76VP.js?v=7090e21b:505
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15687
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19753
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
recoverFromConcurrentError @ chunk-TRUV76VP.js?v=7090e21b:18736
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18684
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:521 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280651826:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)
printWarning @ chunk-TRUV76VP.js?v=7090e21b:521
error @ chunk-TRUV76VP.js?v=7090e21b:505
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15687
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
callCallback2 @ chunk-TRUV76VP.js?v=7090e21b:3674
invokeGuardedCallbackDev @ chunk-TRUV76VP.js?v=7090e21b:3699
invokeGuardedCallback @ chunk-TRUV76VP.js?v=7090e21b:3733
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19765
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
recoverFromConcurrentError @ chunk-TRUV76VP.js?v=7090e21b:18736
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18684
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:15699 Uncaught TypeError: render2 is not a function
    at updateContextConsumer (chunk-TRUV76VP.js?v=7090e21b:15699:27)
    at beginWork (chunk-TRUV76VP.js?v=7090e21b:15957:22)
    at HTMLUnknownElement.callCallback2 (chunk-TRUV76VP.js?v=7090e21b:3674:22)
    at Object.invokeGuardedCallbackDev (chunk-TRUV76VP.js?v=7090e21b:3699:24)
    at invokeGuardedCallback (chunk-TRUV76VP.js?v=7090e21b:3733:39)
    at beginWork$1 (chunk-TRUV76VP.js?v=7090e21b:19765:15)
    at performUnitOfWork (chunk-TRUV76VP.js?v=7090e21b:19198:20)
    at workLoopSync (chunk-TRUV76VP.js?v=7090e21b:19137:13)
    at renderRootSync (chunk-TRUV76VP.js?v=7090e21b:19116:15)
    at recoverFromConcurrentError (chunk-TRUV76VP.js?v=7090e21b:18736:28)
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15699
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
callCallback2 @ chunk-TRUV76VP.js?v=7090e21b:3674
invokeGuardedCallbackDev @ chunk-TRUV76VP.js?v=7090e21b:3699
invokeGuardedCallback @ chunk-TRUV76VP.js?v=7090e21b:3733
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19765
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
recoverFromConcurrentError @ chunk-TRUV76VP.js?v=7090e21b:18736
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18684
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:14032 The above error occurred in the <Context.Consumer> component:

    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280651826:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
logCapturedError @ chunk-TRUV76VP.js?v=7090e21b:14032
update.callback @ chunk-TRUV76VP.js?v=7090e21b:14052
callCallback @ chunk-TRUV76VP.js?v=7090e21b:11248
commitUpdateQueue @ chunk-TRUV76VP.js?v=7090e21b:11265
commitLayoutEffectOnFiber @ chunk-TRUV76VP.js?v=7090e21b:17093
commitLayoutMountEffects_complete @ chunk-TRUV76VP.js?v=7090e21b:17980
commitLayoutEffects_begin @ chunk-TRUV76VP.js?v=7090e21b:17969
commitLayoutEffects @ chunk-TRUV76VP.js?v=7090e21b:17920
commitRootImpl @ chunk-TRUV76VP.js?v=7090e21b:19353
commitRoot @ chunk-TRUV76VP.js?v=7090e21b:19277
finishConcurrentRender @ chunk-TRUV76VP.js?v=7090e21b:18760
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18718
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:15699 Uncaught TypeError: render2 is not a function
    at updateContextConsumer (chunk-TRUV76VP.js?v=7090e21b:15699:27)
    at beginWork (chunk-TRUV76VP.js?v=7090e21b:15957:22)
    at beginWork$1 (chunk-TRUV76VP.js?v=7090e21b:19753:22)
    at performUnitOfWork (chunk-TRUV76VP.js?v=7090e21b:19198:20)
    at workLoopSync (chunk-TRUV76VP.js?v=7090e21b:19137:13)
    at renderRootSync (chunk-TRUV76VP.js?v=7090e21b:19116:15)
    at recoverFromConcurrentError (chunk-TRUV76VP.js?v=7090e21b:18736:28)
    at performConcurrentWorkOnRoot (chunk-TRUV76VP.js?v=7090e21b:18684:30)
    at workLoop (chunk-TRUV76VP.js?v=7090e21b:197:42)
    at flushWork (chunk-TRUV76VP.js?v=7090e21b:176:22)
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15699
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19753
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
recoverFromConcurrentError @ chunk-TRUV76VP.js?v=7090e21b:18736
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18684
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:521 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280687728:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)
printWarning @ chunk-TRUV76VP.js?v=7090e21b:521
error @ chunk-TRUV76VP.js?v=7090e21b:505
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15687
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19753
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18678
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:521 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280687728:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)
printWarning @ chunk-TRUV76VP.js?v=7090e21b:521
error @ chunk-TRUV76VP.js?v=7090e21b:505
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15687
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
callCallback2 @ chunk-TRUV76VP.js?v=7090e21b:3674
invokeGuardedCallbackDev @ chunk-TRUV76VP.js?v=7090e21b:3699
invokeGuardedCallback @ chunk-TRUV76VP.js?v=7090e21b:3733
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19765
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18678
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:15699 Uncaught TypeError: render2 is not a function
    at updateContextConsumer (chunk-TRUV76VP.js?v=7090e21b:15699:27)
    at beginWork (chunk-TRUV76VP.js?v=7090e21b:15957:22)
    at HTMLUnknownElement.callCallback2 (chunk-TRUV76VP.js?v=7090e21b:3674:22)
    at Object.invokeGuardedCallbackDev (chunk-TRUV76VP.js?v=7090e21b:3699:24)
    at invokeGuardedCallback (chunk-TRUV76VP.js?v=7090e21b:3733:39)
    at beginWork$1 (chunk-TRUV76VP.js?v=7090e21b:19765:15)
    at performUnitOfWork (chunk-TRUV76VP.js?v=7090e21b:19198:20)
    at workLoopSync (chunk-TRUV76VP.js?v=7090e21b:19137:13)
    at renderRootSync (chunk-TRUV76VP.js?v=7090e21b:19116:15)
    at performConcurrentWorkOnRoot (chunk-TRUV76VP.js?v=7090e21b:18678:83)
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15699
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
callCallback2 @ chunk-TRUV76VP.js?v=7090e21b:3674
invokeGuardedCallbackDev @ chunk-TRUV76VP.js?v=7090e21b:3699
invokeGuardedCallback @ chunk-TRUV76VP.js?v=7090e21b:3733
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19765
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18678
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:521 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280687728:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)
printWarning @ chunk-TRUV76VP.js?v=7090e21b:521
error @ chunk-TRUV76VP.js?v=7090e21b:505
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15687
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19753
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
recoverFromConcurrentError @ chunk-TRUV76VP.js?v=7090e21b:18736
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18684
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:521 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280687728:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)
printWarning @ chunk-TRUV76VP.js?v=7090e21b:521
error @ chunk-TRUV76VP.js?v=7090e21b:505
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15687
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
callCallback2 @ chunk-TRUV76VP.js?v=7090e21b:3674
invokeGuardedCallbackDev @ chunk-TRUV76VP.js?v=7090e21b:3699
invokeGuardedCallback @ chunk-TRUV76VP.js?v=7090e21b:3733
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19765
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
recoverFromConcurrentError @ chunk-TRUV76VP.js?v=7090e21b:18736
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18684
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:15699 Uncaught TypeError: render2 is not a function
    at updateContextConsumer (chunk-TRUV76VP.js?v=7090e21b:15699:27)
    at beginWork (chunk-TRUV76VP.js?v=7090e21b:15957:22)
    at HTMLUnknownElement.callCallback2 (chunk-TRUV76VP.js?v=7090e21b:3674:22)
    at Object.invokeGuardedCallbackDev (chunk-TRUV76VP.js?v=7090e21b:3699:24)
    at invokeGuardedCallback (chunk-TRUV76VP.js?v=7090e21b:3733:39)
    at beginWork$1 (chunk-TRUV76VP.js?v=7090e21b:19765:15)
    at performUnitOfWork (chunk-TRUV76VP.js?v=7090e21b:19198:20)
    at workLoopSync (chunk-TRUV76VP.js?v=7090e21b:19137:13)
    at renderRootSync (chunk-TRUV76VP.js?v=7090e21b:19116:15)
    at recoverFromConcurrentError (chunk-TRUV76VP.js?v=7090e21b:18736:28)
updateContextConsumer @ chunk-TRUV76VP.js?v=7090e21b:15699
beginWork @ chunk-TRUV76VP.js?v=7090e21b:15957
callCallback2 @ chunk-TRUV76VP.js?v=7090e21b:3674
invokeGuardedCallbackDev @ chunk-TRUV76VP.js?v=7090e21b:3699
invokeGuardedCallback @ chunk-TRUV76VP.js?v=7090e21b:3733
beginWork$1 @ chunk-TRUV76VP.js?v=7090e21b:19765
performUnitOfWork @ chunk-TRUV76VP.js?v=7090e21b:19198
workLoopSync @ chunk-TRUV76VP.js?v=7090e21b:19137
renderRootSync @ chunk-TRUV76VP.js?v=7090e21b:19116
recoverFromConcurrentError @ chunk-TRUV76VP.js?v=7090e21b:18736
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18684
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:14032 The above error occurred in the <Context.Consumer> component:

    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:58163:23
    at article
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86153:19
    at Group2 (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:65885:36)
    at InternalPreviewGroup (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:66513:23)
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:56879:20
    at http://localhost:5173/node_modules/.vite/deps/chunk-FMHWH6S7.js?v=7090e21b:86320:19
    at div
    at div
    at div
    at AssistantMessage (http://localhost:5173/src/components/ChatMessage/AssistantMessage/index.tsx:26:3)
    at ChatMessage (http://localhost:5173/src/components/ChatMessage/index.tsx:23:3)
    at div
    at div
    at ChatArea (http://localhost:5173/src/components/ChatArea/index.tsx:24:3)
    at main
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67941:16
    at Content
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:67960:16
    at Layout
    at Home (http://localhost:5173/src/pages/Home/index.tsx?t=1748280687728:41:3)
    at div
    at div
    at MotionWrapper (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7692:5)
    at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:7796:5)
    at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-5GJMDVVH.js?v=7090e21b:8085:27)
    at App (http://localhost:5173/src/App.tsx?t=1748280651826:27:29)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
logCapturedError @ chunk-TRUV76VP.js?v=7090e21b:14032
update.callback @ chunk-TRUV76VP.js?v=7090e21b:14052
callCallback @ chunk-TRUV76VP.js?v=7090e21b:11248
commitUpdateQueue @ chunk-TRUV76VP.js?v=7090e21b:11265
commitLayoutEffectOnFiber @ chunk-TRUV76VP.js?v=7090e21b:17093
commitLayoutMountEffects_complete @ chunk-TRUV76VP.js?v=7090e21b:17980
commitLayoutEffects_begin @ chunk-TRUV76VP.js?v=7090e21b:17969
commitLayoutEffects @ chunk-TRUV76VP.js?v=7090e21b:17920
commitRootImpl @ chunk-TRUV76VP.js?v=7090e21b:19353
commitRoot @ chunk-TRUV76VP.js?v=7090e21b:19277
finishConcurrentRender @ chunk-TRUV76VP.js?v=7090e21b:18760
performConcurrentWorkOnRoot @ chunk-TRUV76VP.js?v=7090e21b:18718
workLoop @ chunk-TRUV76VP.js?v=7090e21b:197
flushWork @ chunk-TRUV76VP.js?v=7090e21b:176
performWorkUntilDeadline @ chunk-TRUV76VP.js?v=7090e21b:384
chunk-TRUV76VP.js?v=7090e21b:15699 Uncaught TypeError: render2 is not a function

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working | 缺陷

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions