React-custom-scrollbars: Scrollbar is not working in Next.js

Created on 22 Jan 2020  路  3Comments  路  Source: malte-wessel/react-custom-scrollbars

In the Next.js, I am getting below warning.

Warning: Prop style did not match. Server: "position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;-webkit-overflow-scrolling:touch;margin-right:0;margin-bottom:0" Client: "position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;-webkit-overflow-scrolling:touch;margin-right:-17px;margin-bottom:-17px"`

Most helpful comment

If your app runs on both client and server, activate the universal mode. This will ensure that the initial markup on client and server are the same.

Add the universal={true} parameter to your <Scrollbars> element.

See here for more info.

All 3 comments

If your app runs on both client and server, activate the universal mode. This will ensure that the initial markup on client and server are the same.

Add the universal={true} parameter to your <Scrollbars> element.

See here for more info.

It worked thank you!

For me it doesn't work even with universal={true}, still get the same error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nindavidw picture nindavidw  路  4Comments

hank7444 picture hank7444  路  5Comments

philcockfield picture philcockfield  路  3Comments

simonkberg picture simonkberg  路  3Comments

magnetronnie picture magnetronnie  路  3Comments