Seems like it was a bug. The error we were getting was different, but after Ionic team reported a fix here:
I can build now. Thanks!