<Button>{null}🙃</Button>
正确呈现按钮( <button>🙃</button>
)。
insertSpace
方法执行快递null.type
。
导致类型错误:
Uncaught TypeError: Cannot read property 'type' of null
at insertSpace (unpkg.com/[email protected]/dist/antd-with-locales.js:88201)
at mapSingleChildIntoContext (unpkg.com/[email protected]/dist/react.js:371)
at traverseAllChildrenImpl (unpkg.com/[email protected]/dist/react.js:3390)
at traverseAllChildrenImpl (unpkg.com/[email protected]/dist/react.js:3406)
at traverseAllChildren (unpkg.com/[email protected]/dist/react.js:3485)
at mapIntoWithKeyPrefixInternal (unpkg.com/[email protected]/dist/react.js:391)
at Object.mapChildren [as map] (unpkg.com/[email protected]/dist/react.js:413)
at Button.render (unpkg.com/[email protected]/dist/antd-with-locales.js:88303)
at unpkg.com/[email protected]/dist/react-dom.js:5250
at measureLifeCyclePerf (unpkg.com/[email protected]/dist/react-dom.js:4529)
🙃
您能帮我们解决这个问题吗?
是的,请稍等。
@ afc163完成。
该线程没有最近的活动,因此已被自动锁定。 请针对相关错误打开新一期,并链接到该主题中的相关注释。
最有用的评论
@ afc163完成。