can't believe i spent 3 hours debugging only to find out it was a stupid transitive dependency issue in npm, who thought this was a good idea