weird errors with @epwalsh/@majohnso code