Don't Try Catch These Next.js Errors

Поділитися
Вставка
  • Опубліковано 3 лют 2025

КОМЕНТАРІ • 21

  • @enigma_steve
    @enigma_steve Рік тому +11

    For the recent few days I have been having the WORST TIME of my dev life with this weird error. Your explanation cured my (metaphorical) cancer! Thanks a lot!

  • @aberba
    @aberba Рік тому +22

    That's seems to me like a bad API design in Next.js

  • @sorintautu5025
    @sorintautu5025 Рік тому +2

    I was doing the exact same pattern of abstracting the db queries is a separate function and calling that function from the server action and getting that error. Very good video!

  • @JamesRyanCooper
    @JamesRyanCooper 6 місяців тому

    Thanks for the very informative video! I had this issue and didn't realize it. It was causing an error to pop up during my authentication flow, which I was planning to investigate but hadn't gotten around to yet. You probably saved me hours of racking my brain. Thanks!

  • @zunnoorainrafi5985
    @zunnoorainrafi5985 Рік тому +5

    Hi ,
    I want to learn about AWS (EC2,S3 , lambda) and their integration with React application. So from where I can learn these efficiently.

  • @Love-id8gu
    @Love-id8gu Рік тому +1

    Hi. It's me again :))))
    I think comments for youtubes affect positively on your channel! 😇❤
    Could you please make the following video: example of user authorization, registration, user roles. Please use nextjs 14, typescript, server actions, nextauth 5, prisma, shadcn ui, react-hook-form, zod, sonner.
    Have a nice day 😘

  • @wasteghost
    @wasteghost Рік тому +4

    great video, pretty mindblowing!

    • @7doors847
      @7doors847 Рік тому +1

      Absolutely agree! 💯%

  • @den9943
    @den9943 9 місяців тому

    I don't know why you have not attached your lib, but I've found it (might-fail) and tapped a star in github. Thank you!

  • @chrisgascoyne2958
    @chrisgascoyne2958 Рік тому

    Wow thats actually wild, I had no idea😮

  • @shecodes94623
    @shecodes94623 Рік тому

    I love your videos, please do keep going

  • @carlosricardoziegler2650
    @carlosricardoziegler2650 Рік тому

    Really nice video, I dont know this, thanks a lot

  • @festusyuma1901
    @festusyuma1901 Рік тому

    Had an error where my code always failed when I wrapped my redirect with a try catch. struggled with it for a few hours before realizing the try catch being there was the problem

  • @danlazer741
    @danlazer741 10 місяців тому

    This is a reason I'm still coding in react with the react router dom.

  • @engine_man
    @engine_man Рік тому

    Well broken down

  • @ninjasploit
    @ninjasploit Рік тому

    Let's just re-throw it if its a NEXT_REDIRECT :')

  • @_tanzil_
    @_tanzil_ 3 місяці тому

    OMG I never knew that!!
    Why the F*k nextjs would design their framework like that!! This is so unprofessional!!

    • @_tanzil_
      @_tanzil_ 3 місяці тому

      Subscribed. And I'm gonna use the might-fail npm package. Thanks!

  • @eder3232
    @eder3232 Рік тому

    amazing video

  • @naamees
    @naamees Рік тому

    great video