question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

with next.js(server side render) warning: Prop `aria-controls` did not match. Server: "hidden-tt4h6d" Client: "hidden-vlpmbp"

See original GitHub issue

🐛 Bug report

with next.js(server side render) warning: Prop aria-controls did not match. Server: “hidden-tt4h6d” Client: “hidden-vlpmbp”

Current behavior

using MenuDisclosure and Menu, there is a warning:Prop aria-controls did not match. Server: “hidden-tt4h6d” Client: “hidden-vlpmbp”

Environment

“next”: “^9.0.3”, “reakit”: “^1.0.0-beta.5”, “styled-components”: “^4.3.2”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
rumskycommented, Sep 18, 2019

Could you resolve the warning?If this library support SSR,I think it’s better resolve ‘useLayoutEffect’ warning. There are too many warning in server console, It’s hard to find important information,very annoying

2reactions
vvocommented, Jul 22, 2021

Not sure what can be done here, but ignoring warnings is usually not the preferred solution for developers trying to get rid of warnings.

I guess one way to solve it in userland would be to load dynamically the component maybe? Like with Next.js dynamic import: https://nextjs.org/docs/advanced-features/dynamic-import

Read more comments on GitHub >

github_iconTop Results From Across the Web

with next.js(server side render) warning: Prop aria-controls did ...
Bug report with next.js(server side render) warning: Prop aria-controls did not match. Server: "hidden-tt4h6d" Client: "hidden-vlpmbp" ...
Read more >
Nextjs Bootstrap Dropdown issue with server side rendering
By default, the NavDropdown component will not render its children when mounting, only when it's clicked on.
Read more >
How to Build a Server Side Rendered React app with Next.js
Setting up a server side rendered app with the default code generated by Create React App is not easy. You have to do...
Read more >
Next.js Authentication Tutorial. TL;DR - Medium
Don't worry about this method. Its purpose is to make Next.js capable of server-side rendering your styled component (i.e., you need this to ......
Read more >
在next.js中使用Select组件出现Prop `aria-controls ... - Issuehunt
Steps to reproduce. 页面引入Select组件出现 Warning: Prop aria-controls did not match. Server: "d8f8eea5-4c03-4ae3-e1e3-477cafabfd50" Client: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found