For some reason in server.js imageVersions was crashing the node server, commenting it out solves the problem and images upload fine