ant-design / ant-design/cssinjs

Receiving error because code is running before head or body element are available

Open
#164 0 comments 1 reaction 1 assignee Claimed by @MadCcc View on GitHub
Dominant language
TypeScript
Stars
287
Forks
80
PR merge metrics
No merged PRs in 30d

Description

The error happens here:

![image](https://github.com/ant-design/cssinjs/assets/127759380/42bb976a-a08c-4ad7-a128-c300c6546ef4)

As you can see from the watch, both values are null. the code using getContainer assumes the value is set and fails on `container.firstChild`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.