Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] isRedirectError when throw error with Next 5.2.1-canary.1 #329

Open
2 tasks done
rPr3v0t opened this issue Mar 7, 2025 · 0 comments
Open
2 tasks done

[BUG] isRedirectError when throw error with Next 5.2.1-canary.1 #329

rPr3v0t opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@rPr3v0t
Copy link

rPr3v0t commented Mar 7, 2025

Are you using the latest version of this library?

  • I verified that the issue exists in the latest next-safe-action release

Is there an existing issue for this?

  • I have searched the existing issues and found nothing that matches

Describe the bug

Hi,

How can i fix the [ Server ] Error: (0 , {imported module [project]/nodemodules/.pnpm/[email protected]@[email protected][email protected]/nodemodules/next/dist/client/components/redirect.js [app-rsc] (ecmascript)}.isRedirectError) is not a function with 15.2.1-canary.1

I have an issue there with latest version of 15.2.1-canary.1 and next-safe-action latest version.
I tried with [v7.9.10-beta.1] but still have error when i throw a new ActionError.

I'm stuck here because i have to use experimental Middleware on nodejs from 15.2.1-canary.1 because i use NextAuth with drizzle and Pg. There is an issue with crypto (nodejs) with pg lib used by NextAuth DrizzleAdapter... (not compatible with next middleware on the edge in previous next version)

Middleware in nodejs in 15.2.1-canary.1 save my life XD so i don't know how to deal with that issue, i understand next change proccess to handle Errors... but how to deal with that ?

Thanks

Reproduction steps

Use latest version of canary which use experimental middleware and use next safe action and throw an error

Expected behavior

Not throwing a isRedirectError

Link to a minimal reproduction of the issue

https://

Operating System

Mac OS

Library version

7.10.4

Next.js version

15.2.1-canary.1

Node.js version

20.18.0

Additional context

No response

@rPr3v0t rPr3v0t added the bug Something isn't working label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant