spent the whole day debugging and it turns out it's just another npm dependency hell issue.