spent 3 hours debugging and it was just a stupid npm dependency conflict again.