Uncaught TypeError: Cannot read property ‘alternate‘ of undefined

react-konva 出现的错误

修改版本:保证 reactreact-konva 大版本相同

json
{
  "/react": "^17.0.0", // for typescript
   "/react-dom": "^17.0.0", // for typescript
   "react": "^17.0.1",
   "react-dom": "^17.0.1",
   "konva": "^7.2.0",
   "react-konva": "^17.0.1-3",
}
 

或者都用 16版本的

上一篇:Error in render: "TypeError: Cannot read property 'avatar' of undefined"


下一篇:Error in render: “TypeError: Cannot read property ‘xxxxx‘ of undefined“