upgraded from 5.2.3 -> 5.2.5 & faced this error; removing node_modules & yarn.lock fixed it
第二 emotion 库被安装了两次,删除或升级 emotion 库到一个统一的版本。
ad this issue and it was indeed a duplication issue with emotion. Upgrading our (pinned) emotion dependencies fixed the problem for us. I know that the emotion team is working on providing runtime warnings for these issues like react does.
NB! I didn't delete the yarn-lock so only got a minor change in that file.