I was building a design system library that utilizes goober to have fast CSS-in-JS.
I created the smallest component with Goober:
export const StyledSomething = styled("div")``;
Everything is fine and I can generate a build without any errors.
But when I install this package in a project and try to use the StyledSomething component, I get the below error:
Server Error
TypeError: d is not a function
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
a
renderWithHooks
renderForwardRef
renderElement
renderNodeDestructiveImpl
renderNodeDestructive
renderNode
renderChildrenArray
I was building a design system library that utilizes
goober
to have fast CSS-in-JS.I created the smallest component with Goober:
Everything is fine and I can generate a build without any errors.
But when I install this package in a project and try to use the
StyledSomething
component, I get the below error:The library stack:
Stack of the project that is using my library:
react: v18.2.0
next: v13.4.3
goober: v2.1.13
OS: Windows 10
Yarn: v1.22.19
Node.js: v16.15.1