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

fix js console issues #4180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix js console issues #4180

wants to merge 1 commit into from

Conversation

emerzon
Copy link
Contributor

@emerzon emerzon commented Mar 3, 2025

Description

Fixes npm console issues:

Error: In HTML, <button> cannot be a descendant of <button>.
This will cause a hydration error.

  ...
    <FilterPopup availableSources={[...]} availableDocumentSets={[...]} availableTags={[...]} filterManager={{...}} ...>
      <Popover>
        <Popper __scopePopper={{Popper:[...]}}>
          <PopperProvider scope={{Popper:[...]}} anchor={null} onAnchorChange={function bound dispatchSetState}>
            <PopoverProvider scope={undefined} contentId="radix-:r4:" triggerRef={{current:null}} open={false} ...>
              <PopoverTrigger asChild={true}>
                <PopperAnchor asChild={true} __scopePopper={{Popper:[...]}}>
                  <Primitive.div asChild={true} ref={function}>
                    <Slot ref={function}>
                      <SlotClone ref={function}>
                        <Primitive.button type="button" aria-haspopup="dialog" aria-expanded={false} ...>
                          <Slot type="button" aria-haspopup="dialog" aria-expanded={false} aria-controls="radix-:r4:" ...>
                            <SlotClone type="button" aria-haspopup="dialog" aria-expanded={false} ...>
>                             <button
>                               type="button"
>                               aria-haspopup="dialog"
>                               aria-expanded={false}
>                               aria-controls="radix-:r4:"
>                               data-state="closed"
>                               onClick={function handleEvent}
>                               ref={function}
>                             >
                                ...
                                  <Primitive.button aria-describedby={undefined} data-state="closed" type="button" ...>
                                    <Slot aria-describedby={undefined} data-state="closed" type="button" ...>
                                      <SlotClone aria-describedby={undefined} data-state="closed" type="button" ...>
>                                       <button
>                                         ref={function}
>                                         className={"\n            relative \n            cursor-pointer \n         ..."}
>                                         onClick={function handleEvent}
>                                         aria-describedby={undefined}
>                                         data-state="closed"
>                                         type="button"
>                                         onPointerMove={function handleEvent}
>                                         onPointerLeave={function handleEvent}
>                                         onPointerDown={function handleEvent}
>                                         onFocus={function handleEvent}
>                                         onBlur={function handleEvent}
>                                       >
              ...

    at createUnhandledError (http://localhost:3000/_next/static/chunks/node_modules_next_dist_client_ce20a02f._.js:879:71)
    at handleClientError (http://localhost:3000/_next/static/chunks/node_modules_next_dist_client_ce20a02f._.js:1052:56)
    at console.error (http://localhost:3000/_next/static/chunks/node_modules_next_dist_client_ce20a02f._.js:1191:56)
    at validateDOMNesting (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:1881:372)
    at completeWork (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:7309:25)
    at runWithFiberInDEV (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:1326:74)
    at completeUnitOfWork (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:8052:23)
    at performUnitOfWork (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:7989:28)
    at workLoopSync (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:7879:40)
    at renderRootSync (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:7862:13)
    at performWorkOnRoot (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:7603:212)
    at performSyncWorkOnRoot (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:8573:9)
    at flushSyncWorkAcrossRoots_impl (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:8493:316)
    at flushSpawnedWork (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:8274:13)
    at commitRoot (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:8136:13)
    at commitRootWhenReady (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:7700:9)
    at performWorkOnRoot (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:7678:25)
    at performWorkOnRootViaSchedulerTask (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_react-dom_1f56dc06._.js:8565:9)
    at MessagePort.performWorkUntilDeadline (http://localhost:3000/_next/static/chunks/node_modules_next_dist_compiled_38d265cf._.js:1956:64)
    at button (<anonymous>)
    at ChatInputOption (http://localhost:3000/_next/static/chunks/src_app_chat_input_caaad9cf._.js:29:233)
    at Slot (http://localhost:3000/_next/static/chunks/node_modules_326b0768._.js:6819:206)
    at Primitive.button (http://localhost:3000/_next/static/chunks/node_modules_326b0768._.js:7388:210)
    at TooltipTrigger (http://localhost:3000/_next/static/chunks/node_modules_326b0768._.js:11215:213)
    at Slot (http://localhost:3000/_next/static/chunks/node_modules_326b0768._.js:6819:206)
    at Primitive.div (http://localhost:3000/_next/static/chunks/node_modules_326b0768._.js:7388:210)
    at PopperAnchor (http://localhost:3000/_next/static/chunks/node_modules_326b0768._.js:10390:226)
    at TooltipTrigger (http://localhost:3000/_next/static/chunks/node_modules_326b0768._.js:11212:206)
    at _c (http://localhost:3000/_next/static/chunks/_bace4b77._.js:8148:460)
    at ChatInputOption (http://localhost:3000/_next/static/chunks/src_app_chat_input_caaad9cf._.js:27:219)
    at ChatInputBar (http://localhost:3000/_next/static/chunks/src_app_chat_input_caaad9cf._.js:1456:260)
    at children (http://localhost:3000/_next/static/chunks/src_app_chat_ChatPage_tsx_e7c7eaeb._.js:2370:279)
    at Dropzone (http://localhost:3000/_next/static/chunks/node_modules_41788350._.js:16745:386)
    at ChatPage (http://localhost:3000/_next/static/chunks/src_app_chat_ChatPage_tsx_e7c7eaeb._.js:1897:294)
    at content (http://localhost:3000/_next/static/chunks/src_app_chat_a4083078._.js:4924:246)
    at FunctionalWrapper (http://localhost:3000/_next/static/chunks/src_components_6b0f4c0a._.js:8215:23)
    at WrappedChat (http://localhost:3000/_next/static/chunks/src_app_chat_a4083078._.js:4922:214)
    at Page (rsc://React/Server/file:///home/egomes/photon/ccoe/synapse/danswer-ee/web/.next/server/chunks/ssr/_d5495f1c._.js?16:133:263)

@emerzon emerzon requested a review from a team as a code owner March 3, 2025 22:55
Copy link

vercel bot commented Mar 3, 2025

Someone is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.

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 this pull request may close these issues.

1 participant