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

Aphrodite example fails with React 18 #41832

Closed
1 task done
mattmcdonald-uk opened this issue Oct 26, 2022 · 1 comment · Fixed by #42078
Closed
1 task done

Aphrodite example fails with React 18 #41832

mattmcdonald-uk opened this issue Oct 26, 2022 · 1 comment · Fixed by #42078
Labels
examples Issue/PR related to examples

Comments

@mattmcdonald-uk
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

react: 18.2.0
react-dom: 18.2.0

Which example does this report relate to?

with-aphrodite

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

When running the with-aphrodite example using React 18.2.0 you get this error:

Error: "MyDocument.getInitialProps()" should resolve to an object with a "html" prop set with a valid html string

Expected Behavior

The example should render without an error.

To Reproduce

Install the with-aphrodite example and change the react and react-dom dependency versions from 17.0.2 to 18.2.0

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant