I was implementing the code of a digital signature made with canvas works correctly but when I implement it in my project I get this error