embiem / react-canvas-draw

React Component for drawing in canvas
https://embiem.github.io/react-canvas-draw/
MIT License
892 stars 315 forks source link

Cannot read properties of undefined (reading 'getPointerCoordinates') #129

Closed danhiel98 closed 2 years ago

danhiel98 commented 2 years ago

That error appears when I use the library in a next js project hosted in Vercel. I have noticed that today, because a few days ago it was working fine.

I don't know if it is due to the changes that have been made in the library or perhaps in Vercel.

danhiel98 commented 2 years ago

I've already solve the problem. What happened is that Vercel does not support the property canvasWidth='100%'

sacru2red commented 2 years ago

same Issue. canvasHeight and canvasWidth can recive only number Value. CanvasDraw.lazy is undefined When canvasWidth is '100%'