Realm node tutorial start branch builds the app but user gets error email must be of type 'string', got ([object Object])

I am doing this tutorial
https://docs.mongodb.com/realm/tutorial/nodejs-cli/

This is my repo

The app runs but when I attempt to add an email I get this message:

WELCOME, NEW USER

? Email: second@example.com
? Password: *****

 ❗
email must be of type 'string', got ([object Object])
 ❗


WELCOME, NEW USER

? Email: first@example.com
? Password: *****

 ❗
email must be of type 'string', got ([object Object])
 ❗

When I retried the tutorial using the Latest branch and did npm install the app worked perfectly, that tutorial repo is here