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

Next js - Hydration Failed #13

Open
Lenghak opened this issue Jun 2, 2023 · 2 comments
Open

Next js - Hydration Failed #13

Lenghak opened this issue Jun 2, 2023 · 2 comments

Comments

@Lenghak
Copy link

Lenghak commented Jun 2, 2023

When using inside of Next js 13, it will cause this error:
Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a precedenceprop along with anhrefprop that does not conflic with thehrefvalues used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding aprecedence="default"andhref="some unique resource identifier", or move the <style> to the <style> tag.

@beeinger
Copy link
Owner

beeinger commented Jun 2, 2023

Yeah it's not working with NextJs 13 app folder

@Lenghak
Copy link
Author

Lenghak commented Jun 7, 2023

Understandable. I hope there will be some fixes soon.

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