#Property "height" and "width" undefined in Node
1 messages · Page 1 of 1 (latest)
You need to provide more context to your question.
What version are you using?
Where are you getting this node from?
Maybe as Braks suggested its a version issue because in recent reactflow package, @xyflow/react, you have an object measured in the node object with height and width attributes.
Only if you're adding a onNodesChange handler btw, otherwise this property wouldn't exist on your nodes
Internal nodes, which can be retrieved using getNodes / getNode from useReactFlow would have this regardless of a change handler though
Ok i used internalNode like you suggested, instead of juste logging the node i made