DejaVue #E035 - Error Handling in Vue @DejaVueFm
DejaVue #E035 - Error Handling in Vue  @DejaVueFm
Uploaded November 2024 | Updated November 2026, 2 hours ago
All of you have seen users do weird things with your application and running into strange scenarios - who can't relate to this?
For this and many other reasons, the right way of error handling is important in you application. Join Michael and Alex on a discussion of the different ways one can handle errors in their application.
That includes not always showing an error page, but also handling errors request-based or component-based!

On that note, error messages and how to write decent ones that are helpful for the users are discussed, as well as how components like NuxtErrorBoundary work under the hood

Enjoy the episode!


---
Your Hosts

* Michael Thiessen
* Twitter - https://bsky.app/profile/michaelthiessen.bsky.social
* YouTube - @michaelnthiessen
* Web - michaelnthiessen.com

* Alexander Lichter
* YouTube - @TheAlexLichter
* Bsky - https://bsky.app/profile/thealexlichter.com
* Web - lichter.io

--
Chaptermarks:

00:00 Welcome to DejaVue
01:22 The good old error page
01:58 Write good error messages!
03:11 The Vue global error handler
05:07 Server vs. Client Errors in Nuxt.js
08:34 The vue:error hook
09:05 Global error handling for $fetch and interceptors
11:10 Throw unhandled errors in Prod with Vue 3.5?
13:07 Component-level error handling
16:33 NuxtErrorBoundary
18:01 defineAsyncComponent
18:53 Request-based error handling
21:45 New default values in Nuxt 4
23:30 Error Tracking
26:33 Actually handling the errors
28:54 Wrapping up

--
Links and Resources

▶ State of JS Survey survey.devographics.com/en-US/survey/state-of-js/2024?source=dejavue_e035
▶ Sentry sentry.io/welcome/?utm_source=dejavue&utm_medium=description&utm_content=e035
▶ Bugsnag bugsnag.com
▶ Rollbar rollbar.com
▶ Michael's talk on error handling in Nuxt youtube.com/watch?v=UBDVm8c7YoA
▶ Michael's article on error handling in Nuxt masteringnuxt.com/blog/handling-errors-in-nuxt3?friend=DEJAVUE
▶ And another deep dive into Nuxt 3 error handling masteringnuxt.com/blog/how-to-use-error-handling-to-create-rock-solid-apps?friend=DEJAVUE
▶ DejaVue #E034 - Data Fetching in Vue and Nuxt https://share.transistor.fm/s/422eae00
▶ Vue Issue regarding throwing errors in production (low level) github.com/vuejs/core/issues/7876
▶ Vike https://vike.dev/
▶ NuxtErrorBoundary component Source Code uxt/src/app/components/nuxt-error-boundary.ts
▶ ofetch github.com/unjs/ofetch
▶ Zod github.com/colinhacks/zod
▶ Valibot github.com/fabian-hiller/valibot
▶ Nuxt 4 error and data will be undefined by default nuxt.com/docs/getting-started/upgrade#default-data-and-error-values-in-useasyncdata-and-usefetch
▶ Create abstractions for your headings and buttons youtube.com/watch?v=0u9iAy4t2K4&feature=youtu.be

--
Follow DejaVue on

▶ The Web: https://dejavue.fm/
▶ Bsky: https://bsky.app/profile/dejavue.fm
▶ Apple Podcast: podcasts.apple.com/us/podcast/dejavue/id1737631788
▶ YouTube: youtube.com/@DejaVueFm
▶ Spotify: open.spotify.com/show/5VQ15QHkC7HSmwTYR7vCPF
▶ Deezer: deezer.com/show/1000792252
▶ Amazon Music: music.amazon.com/podcasts/798ccbb2-4a8f-4d83-bff7-00cbc8730f56
▶ Pocket Casts: https://pca.st/49qr8d1k

--

Links marked with * are affiliate links. We get a small commission when you register for the service through our link. This helps us to keep the podcast running. We only include affiliate links for services mentioned in the episode or that we use ourselves.
DejaVue #E035 - Error Handling in VueDejaVue #E052 - Visualizing Data in Vue (with Dennis Adriaansen)DejaVue #E055 - e18e: Ecosystem Performance (with James Garbutt)DejaVue #E011 - Learning new Vue Features and Concepts (with LearnVue aka. Matt Maribojoc)DejaVue #E057 - Motion for Vue (with Matt Perry)DejaVue #E030 - Pinia and Data Loaders (with Eduardo San Martin Morote)DejaVue #E046 - A Vue at Michael ThiessenDejaVue #E006 - Nuxt Server Components (with Julien Huang)Evan You: Messy code with the Composition API?  #podcast #vuejs #interview #dejavueDejaVue #E054 - Open Source Sustainability (with Daniel Roe, Chad Whitacre & Rijk van Zanten)DejaVue #E060 - Vite 7 is outDejaVue #E047 - A Vue at Alexander Lichter
DejaVue |

DejaVue #E035 - Error Handling in Vue

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER