Skip to content

Fixes for next.js #86

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

Merged
merged 3 commits into from
Sep 20, 2022
Merged

Fixes for next.js #86

merged 3 commits into from
Sep 20, 2022

Conversation

HaoboZ
Copy link
Contributor

@HaoboZ HaoboZ commented Jul 23, 2022

This throws an error in next.js because instanceOf(Element) will not work for SSR.
The usage of dynamic import isn't exactly a solution but a workaround to a problem that only involves typechecking.
PropTypes.element should work for it instead.

This throws an error in next.js because instanceOf(Element) will not work for SSR.
The usage of dynamic import isn't exactly a solution but a workaround to a problem that only involves typechecking. 
Since this is for a react library, PropTypes.element should be good to check for the typing.
@HiDeoo HiDeoo merged commit a9a9bfa into HiDeoo:main Sep 20, 2022
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

Successfully merging this pull request may close these issues.

2 participants