index.js:1 Warning: Failed prop type: LineageDag: prop type layout is invalid; it must be a function, usually from the prop-types package, but received object.This often happens because of typos such as PropTypes.function instead of PropTypes.func.
at LineageDag
index.js:1 Warning: Failed prop type: LineageDag: prop type
layout
is invalid; it must be a function, usually from theprop-types
package, but receivedobject
.This often happens because of typos such asPropTypes.function
instead ofPropTypes.func
. at LineageDag这是什么原因,是源码定义:
layout: { ranksep: PropTypes.number, radius: PropTypes.number },
实际调用:
layout: dagreLayout({ ranksep: layout.ranksep, nodesep: layout.nodesep, }),
dagreLayout 定义:
这是错了?那大家是怎么跑起来的呢?