pdf-lib with fontkit won't allow custom fonts

I should note that I have also tried to directly import { create } from both the standard fontkit module and the @pdf-lib/fontkit module (which is a fork off of the original) which did not help at all, same error.