Type 'Effect<{ message: string; }, CreatePasswordResetTokenError | ConfigError | CreatePasswordResetUrlError, never>' is not assignable to type 'Effect<{ readonly message: string; } | HttpServerResponse, CreatePasswordResetTokenError | CreatePasswordResetUrlError | HttpApiDecodeError | ConfigError, never>'. #5504
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a Next.js project and I am trying to write the API endpoints using effect/platform.
I have run into a TS error that I am not able to solve even after consulting the LLMs.
Here is my
app/effect/[[...path]]/route.ts
file:Here is the
app/effect/server.ts
file:Here is the endpoint definition:
lib/api/auth/endpoints/index.ts:
Here is the group file:
lib/api/auth/group/index.ts:
Here is the
forgotPasswordHandler
file:Here is the
createPasswordResetToken
file;Here is the
passwordresetTokenUrl
function:The Errors
Currently, I am getting two TS errors.
Error-1
I am seeing a red squiggly error under
forgotPasswordHandler
on this line:The error says:
I don't know what do I do to fix this error?
Error-2
I am getting another red squiggly error under
WebHandlerLayer
on the line below:The error says:
Please help me fix these errors.
Note
please note that all errors go away if I remove the following line:
from the
forgotPasswordHandler
file.Beta Was this translation helpful? Give feedback.
All reactions