react-functional-select icon indicating copy to clipboard operation
react-functional-select copied to clipboard

SSR error with nextjs

Open yyynnn opened this issue 2 years ago • 1 comments

getting withConfig of undefined error while using nextjs

yyynnn avatar Dec 16 '22 13:12 yyynnn

@yyynnn

Without knowing how you have it configured i'd suggest looking at the following two examples posted by nextjs:

with-styled-components with-styled-components-babel

The react-funtional-select package is compiled using the babel plugin babel-plugin-styled-components, so if you have a .babelrc file you can replicate the configuration in the 2nd example. If not, you can try the first example.

I can take a look at my bundling process as well to check for anything that may be impacting ssr builds.

based-ghost avatar Dec 24 '22 10:12 based-ghost