Hello,
We are converting our React components to WebComponents (with AntDesign 4 everything worked fine). We've upgraded to V5, and when we build the React components then we include the built file in our sites written in pure HTML (included in the <head>).
But as in the screenshot below, an error is detected. I think the condition in file src/StyleContext.tsx:13 is missing the document.body check, this will avoid some issues in the future, as V5 of antd has just been released.
I thank you for your work, and for the correction that you could bring 🙏.
Hello, We are converting our React components to WebComponents (with AntDesign 4 everything worked fine). We've upgraded to V5, and when we build the React components then we include the built file in our sites written in pure HTML (included in the
<head>
). But as in the screenshot below, an error is detected. I think the condition in filesrc/StyleContext.tsx:13
is missing thedocument.body
check, this will avoid some issues in the future, as V5 of antd has just been released. I thank you for your work, and for the correction that you could bring 🙏.