Hmza
Hmza11mo ago

is resend working for anyone ?

is resend working for anyone ? for verification or for reset password? i get this error in both cases, can't seem to send an email successfully
9 Replies
Hmza
HmzaOP11mo ago
error Server Error Uncaught Error: Uncaught Error: Provider resend-otp is not configured at getProviderOrThrow (../../node_modules/@convex-dev
Hmza
HmzaOP11mo ago
Passwords - Convex Auth
Relations, default values, unique fields and more for Convex
Hmza
HmzaOP11mo ago
enviorment variable for resend is set in convex. what am i doing wrong.
prtcl
prtcl11mo ago
I have resend OTP working, just curious are you passing the same provider ID string to signIn and the initializer? doesn't seem to be typed yet so I just made a shared const to prevent mismatch/typos
Hmza
HmzaOP11mo ago
hey yeah i'm using the same id, actually i already figured that looking at different keys for resend configuration and provider. i'm using nextjs so now its something related to that Server Error Uncaught TypeError: reactDOMServer.renderToPipeableStream is not a function its actually related to react email components as it seems otherwise its workin
Rope-a-dope
Rope-a-dope11mo ago
Not sure it is related, but resend can only send to your email if you don't have domain set.
Michal Srb
Michal Srb11mo ago
For Uncaught TypeError: reactDOMServer.renderToPipeableStream is not a function make sure to use resend@3.2.0, 3.3.0 and 3.4.0 are broken
Hmza
HmzaOP11mo ago
oh na fam. this was more of something to do with react rendering didn't know that. worked! thanks alot
Michael
Michael2w ago
This was supposedly fixed in newer versions of resend and react-email/render (https://github.com/resend/resend-node/issues/381). However, it didn't work for me with resend@4.5.1 + @react-email/render@1.1.2 inside a convex action. I did test and it works fine as a next.js 15 app router backend/api route, so it's expecting something from the environment it's not receiving (maybe Webstreams, just a guess from reading other github issues). What does work for convex actions is jsx-email. Just make sure to put "use node" at the top of both the convex action and the tsx template, or you'll get a lot of these errors:
✘ [ERROR] Could not resolve "path"

node_modules/.pnpm/clean-css@5.3.3/node_modules/clean-css/lib/reader/rewrite-url.js:1:19:
1 │ var path = require('path');
╵ ~~~~~~

The package "path" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

✘ [ERROR] Could not resolve "url"

node_modules/.pnpm/clean-css@5.3.3/node_modules/clean-css/lib/reader/rewrite-url.js:2:18:
2 │ var url = require('url');
╵ ~~~~~

The package "url" wasn't found on the file system but is built into node. Are you trying to bundle
for node? You can use "platform: 'node'" to do that, which will remove this error.
✖ It looks like you are using Node APIs from a file without the "use node" directive.
See https://docs.convex.dev/functions/runtimes#nodejs-runtime
✘ [ERROR] Could not resolve "path"

node_modules/.pnpm/clean-css@5.3.3/node_modules/clean-css/lib/reader/rewrite-url.js:1:19:
1 │ var path = require('path');
╵ ~~~~~~

The package "path" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

✘ [ERROR] Could not resolve "url"

node_modules/.pnpm/clean-css@5.3.3/node_modules/clean-css/lib/reader/rewrite-url.js:2:18:
2 │ var url = require('url');
╵ ~~~~~

The package "url" wasn't found on the file system but is built into node. Are you trying to bundle
for node? You can use "platform: 'node'" to do that, which will remove this error.
✖ It looks like you are using Node APIs from a file without the "use node" directive.
See https://docs.convex.dev/functions/runtimes#nodejs-runtime

Did you find this page helpful?