Closed eduaugusto10 closed 3 years ago
I found an issue like mine, but to Konva https://github.com/konvajs/react-konva/issues/171 I installed a react version >17 and the problem continues
Try to clear cache from your build program and reinstall dependencies (make sure react v>17). If it doesn't work please post your package-lock.json
or yarn.lock
.
I am sure that is an issue from version conflict of react
and react-konva
(used by polotno).
Hell @lavrton , I clear the cache, delete and reinstall dependencies, my react is v>17 , about polotno and konva I found this in yarn.lock
konva@^7.2.5: version "7.2.5" resolved "https://registry.yarnpkg.com/konva/-/konva-7.2.5.tgz#9b4ac3a353e6be66e3e69123bf2a0cbc61efeb26" integrity sha512-yk/li8rUF+09QNlOdkwbEId+QvfATMe/aMGVouWW1oFoUVTYWHsQuIAE6lWy11DK8mLJEJijkNAXC5K+NVlMew==
If you want more info, please tell me. I'll create a new project only with react routes and polotno, because the actual project has many things
I'll create a new project only with react routes and polotno
Please do that. So I can clone and reproduce it.
I reproduce react router and polotno and works well, so, i'll close the ticket. Thanks @lavrton for your help
I create Polotno outside the react routes and the application works, but if I copy and paste the application inside react routes, it broken.
my code
![image](https://user-images.githubusercontent.com/8418723/111542170-21416780-8750-11eb-8906-31e48aacd24b.png)
The error is "Cannot read property 'alternate' of undefined", do you know where is my error?