Closed nekketsuuu closed 1 year ago
I still have the same issue with you. Can you open this issue at ant-design repo?
Oh, sorry I don't receive notification for "Can you open~".
It seems that https://github.com/ant-design/ant-design-examples/pull/27 solves this problem now. I cannot reproduce the same problem using the current HEAD. I'm closing this issue. Thank you @zombieJ!
@nekketsuuu This PR does not solve the problem, it only fixed SSR cache bug that crashes the app, currently the problem you are discussing still exists.
Hmm. For now I cannot reproduce the problem on my local environment.... Would you please open a new issue if you can reproduce the problem?
@nekketsuuu yes, I will do it if I have free time. 😊
On with-nextjs-app-router-inline-style example,
next build
produces index.html which contains two<style id="antd">...</style>
tags, and one of the tags is located outside of<html>...</html>
. Here is the whole output: https://gist.github.com/nekketsuuu/055300c118072ae16121490ce500f801W3C's Markup Validation Service https://validator.w3.org/#validate_by_input shows a fatal error for this HTML.
I suppose this may be a problem around
StyledComponentsRegistry
, but I don't know any details at the moment.I used yarn v3 to install packages, and run
yarn build && yarn start
to examine index.html. My yarn.lock is here: https://gist.github.com/nekketsuuu/055300c118072ae16121490ce500f801.