Open Capricair opened 2 years ago
Have you tried the global
flag on the style tag?
If you just want to add a style tag in Next/Head, you can just remove jsx
prop.
If you want to add jsx style globally, you need to move this style tag out of Head component, do something like this:
https://nextjs.org/blog/styling-next-with-styled-jsx
(you can also refer to here: https://github.com/vercel/styled-jsx)
But I cannot find the reason why jsx
style tag be omitted in Head component. Not sure if anyone can point out that.
If you just want to add a style tag in Next/Head, you can just remove
jsx
prop. If you want to add jsx style globally, you need to move this style tag out of Head component, do something like this: https://nextjs.org/blog/styling-next-with-styled-jsx (you can also refer to here: https://github.com/vercel/styled-jsx) But I cannot find the reason whyjsx
style tag be omitted in Head component. Not sure if anyone can point out that.
Next.js includes Styled JSX by default
Have you tried the
global
flag on the style tag?
global
flag also doesn't work
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
cannot render in next/head ``` ... ``` ### Expected Behavior render in next/head successfully ### Link to reproduction https://github.com/Capricair/next-dynamic-issue ### To Reproduce 1. npm run install 2. npm run dev 3. open homepage