Mailer Setup Fails

I am trying to set up mailer as indicated in the documentation

However, when I execute the command
yarn rw setup mailer

I get the error

× The “data” argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received
an instance of Promise
■ Adding api/src/mail directory…
■ Adding example ReactEmail mail template
■ Adding production dependencies to your api side…
■ Adding development dependencies to your api side…
The “data” argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise

I am using redwood version 7.6.3. Can anyone assist me on this problem? Thank you!

Update:
I tried the command by setting up a brand new redwood project and I received the same error. Is it the case for everyone?

Also, I am using node v20.11.1

Thanks for raising this issue! I’ll attempt to reproduce this and then get a fix out when I’ve corrected it.

Thank you very much! The mailer function looks quite functional from what I saw in the tutorial, it’d be very beneficial.

This has highlighted a wider issue which I’ve started tracking on GitHub: [Bug]: CLI commands fail due to unawaited promise (JS projects) · Issue #10762 · redwoodjs/redwood · GitHub