next-progress icon indicating copy to clipboard operation
next-progress copied to clipboard

Next js - Hydration Failed

Open Lenghak opened this issue 2 years ago • 2 comments

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.

Lenghak avatar Jun 02 '23 05:06 Lenghak

Yeah it's not working with NextJs 13 app folder

beeinger avatar Jun 02 '23 06:06 beeinger

Understandable. I hope there will be some fixes soon.

Lenghak avatar Jun 07 '23 08:06 Lenghak