react-flexbox-grid icon indicating copy to clipboard operation
react-flexbox-grid copied to clipboard

Prop `className` did not match between client and server

Open hansiemithun opened this issue 6 years ago • 0 comments

When configuring react-flexbox-grid along with sass inside Next.js. Facing this challenge.

The project created using latest: create-next-app and I do not have any custom changes in .babelrc

Error

index.js:2178 Warning: Prop className did not match. Server: "col-xs-12 col-md-4 col-lg-2" Client: "col-xs-12__flexboxgrid2__AdoKE col-md-4__flexboxgrid2__3pbbS col-lg-2__flexboxgrid2__1x6vt"

Sass Configuration Looks like this:

const sassConfig = {
  cssModules: true,
  cssLoaderOptions: {
    importLoaders: 1,
    localIdentName: '[local]__[name]__[hash:base64:5]'
  }
};

Some more:

module.exports = withPlugins(
  [[withSass, sassConfig], [withCss], [optimizedImages, optimizedImagesConfig]],
  nextConfiguration
);

Tried including and excluding flexboxgrid inside sass configuration above, but still no luck. Any help would be much appreciated

Stackoverflow: https://stackoverflow.com/questions/53905586/react-flexbox-grid-prop-classname-did-not-match-between-client-and-server

hansiemithun avatar Dec 23 '18 17:12 hansiemithun