Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to consume the library #4

Open
Marija-Kov opened this issue Jul 30, 2024 · 0 comments
Open

Unable to consume the library #4

Marija-Kov opened this issue Jul 30, 2024 · 0 comments

Comments

@Marija-Kov
Copy link
Owner

The consuming apps get multiple errors (in development mode) in attempt to render the component:

react.development.js:209 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component.

TypeError: Cannot read properties of null (reading 'useContext')
at Object.useContext (react.development.js:1618:1)
at styled-components.esm.js:1:1
at O (styled-components.esm.js:1:1)
at renderWithHooks (react-dom.development.js:15486:1)
at updateForwardRef (react-dom.development.js:19245:1)
at beginWork (react-dom.development.js:21675:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
at invokeGuardedCallback (react-dom.development.js:4277:1)
at beginWork$1 (react-dom.development.js:27490:1)

The solution should be somewhere in here: facebook//react/issues/13991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant