Don't Try Catch These Next.js Errors

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 21

  • @enigma_steve
    @enigma_steve ปีที่แล้ว +10

    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 ปีที่แล้ว +19

    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 4 หลายเดือนก่อน

    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 😘

  • @den9943
    @den9943 8 หลายเดือนก่อน

    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!

  • @wasteghost
    @wasteghost ปีที่แล้ว +4

    great video, pretty mindblowing!

    • @7doors847
      @7doors847 ปีที่แล้ว +1

      Absolutely agree! 💯%

  • @chrisgascoyne2958
    @chrisgascoyne2958 10 หลายเดือนก่อน

    Wow thats actually wild, I had no idea😮

  • @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

  • @shecodes94623
    @shecodes94623 ปีที่แล้ว

    I love your videos, please do keep going

  • @carlosricardoziegler2650
    @carlosricardoziegler2650 11 หลายเดือนก่อน

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

  • @danlazer741
    @danlazer741 9 หลายเดือนก่อน

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

  • @ninjasploit
    @ninjasploit ปีที่แล้ว

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

  • @eder3232
    @eder3232 ปีที่แล้ว

    amazing video

  • @engine_man
    @engine_man 11 หลายเดือนก่อน

    Well broken down

  • @_tanzil_
    @_tanzil_ 2 หลายเดือนก่อน

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

    • @_tanzil_
      @_tanzil_ 2 หลายเดือนก่อน

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

  • @naamees
    @naamees ปีที่แล้ว

    great video