Don't Try Catch These Next.js Errors

Поделиться
HTML-код
  • Опубликовано: 7 дек 2023
  • Next.js intentionally throws errors in your app, don't catch them.
    Join this channel to help support me make videos
    / @sammeechward
    🔗Moar Links
    My Website: www.sammeechward.com
    Instagram: / meech_ward
    Twitter: / meech_ward
    Github: github.com/orgs/Sam-Meech-Ward
  • НаукаНаука

Комментарии • 18

  • @enigma_steve
    @enigma_steve 6 месяцев назад +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 6 месяцев назад +16

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

  • @sorintautu5025
    @sorintautu5025 7 месяцев назад +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!

  • @zunnoorainrafi5985
    @zunnoorainrafi5985 7 месяцев назад +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 6 месяцев назад +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 2 месяца назад

    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!

  • @shecodes94623
    @shecodes94623 6 месяцев назад

    I love your videos, please do keep going

  • @carlosricardoziegler2650
    @carlosricardoziegler2650 6 месяцев назад

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

  • @wasteghost
    @wasteghost 7 месяцев назад +4

    great video, pretty mindblowing!

    • @7doors847
      @7doors847 7 месяцев назад +1

      Absolutely agree! 💯%

  • @chrisgascoyne2958
    @chrisgascoyne2958 5 месяцев назад

    Wow thats actually wild, I had no idea😮

  • @festusyuma1901
    @festusyuma1901 6 месяцев назад

    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 3 месяца назад

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

  • @ederEngine
    @ederEngine 6 месяцев назад

    amazing video

  • @engine_man
    @engine_man 6 месяцев назад

    Well broken down

  • @naamees
    @naamees 6 месяцев назад

    great video

  • @ninjasploit
    @ninjasploit 6 месяцев назад

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