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

Expected server HTML to contain a matching <kbd> in <span> #1398

Closed
IanVS opened this issue May 27, 2022 · 2 comments
Closed

Expected server HTML to contain a matching <kbd> in <span> #1398

IanVS opened this issue May 27, 2022 · 2 comments

Comments

@IanVS
Copy link
Contributor

IanVS commented May 27, 2022

Description

I'm seeing a dev console warning that seems to be related to #1335:

Warning: Expected server HTML to contain a matching <kbd> in <span>.
    at kbd
    at span
    at button
    at http://localhost:3000/node_modules/.vite/deps/@docsearch_react.js?v=db2f8ae7:109:32
    at DocSearch (http://localhost:3000/node_modules/.vite/deps/@docsearch_react.js?v=db2f8ae7:4512:48)

I'm using Astro, which does SSR, which is what this warning seems to be about.

Steps to reproduce

I'll try to work on a reproduction, but it might take a bit.

Expected behavior

I expect not to see a warning message.

Environment

  • OS: macOS
  • Browser: All
  • DocSearch version: 3.1.0
@colinking
Copy link

We're also hitting this issue. FWIW, this appears to be the same issue as #1242. You get the error message from that thread if you try this with v3.0.0.

@shortcuts
Copy link
Member

This should be fixed by #1384 for production build at least

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

3 participants