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

Nextjs error #30

Open
fred-boink opened this issue Oct 7, 2021 · 1 comment
Open

Nextjs error #30

fred-boink opened this issue Oct 7, 2021 · 1 comment

Comments

@fred-boink
Copy link

Has anyone tried to run this on Nextjs? Getting an error:

"Cannot read property 'getInitialPortalProps' of null"

@pimterry
Copy link
Member

pimterry commented Oct 7, 2021

As far as I know everything should work fine with Nextjs, or any other React framework. One thing that might be tricky though is if Nextjs automatically tries to render your portals with SSR. Because portals interact with the DOM directly, lots of SSR setups might not work, so for now it's generally recommended to avoid rendering portals on the server-side entirely.

#3 has a little more context if that's useful. Do you think that might be the issue here?

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

2 participants