hash-define-organization / Hash-Whiteboard

Whiteboard Built with ReactJS and Material UI 🚀❤️
https://hashdefine-whiteboard.netlify.app/
MIT License
21 stars 39 forks source link

Canvas Misbehaving in Production Build #2

Open DhairyaBahl opened 2 years ago

DhairyaBahl commented 2 years ago

Description

Canvas is misbehaving in production build. Not sure but I believe the problem is because of babel's transcompilation.

How to achieve ?

Change the NODE_ENV and BABEL_ENV in scripts/build.js from development to production and then do react build. You will see how canvas is misbehaving.

ShivanshCharak commented 2 years ago

if this issue is free to work I would like work on this issue under Gssoc

DhairyaBahl commented 2 years ago

@ShivanshCharak Yes Ofcourse ! You can work on this issue ! Make sure to update PR status on daily basis over here ! Otherwise This will be assigned to someone else.

ShivanshCharak commented 2 years ago

@DhairyaBahl can u Explain a little bit how is it misbehaving for me the canvas is technically working fine after changing the node_env and babel_env to production. react build is a command?

DhairyaBahl commented 2 years ago

@ShivanshCharak I was unable to draw anything on the whiteboard. Do try that again ! If it's working, then add gif and other things in your PR after making the change and I'll merge it.