styled-components-breakpoint webpack error in NextJS #12249
Unanswered
arthurpeck
asked this question in
Help
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
After sucessfully used the styled-components-breakpoint in React in the past, I wanted to add styled-components-breakpoint to my components in NextJS.
When I use it, it throws an webpack error:
TypeError: styled_components_breakpoint__WEBPACK_IMPORTED_MODULE_4___default(...) is not a function
Component:
next.config.js:
Why is it throwing an error? I can use styled-components perfectly without breakpoints and webpack compiles...
Beta Was this translation helpful? Give feedback.
All reactions