Skip to content

Conversation

@ST-DDT
Copy link

@ST-DDT ST-DDT commented Dec 10, 2025

Description of Problem

Currently, it is very hard to understand how the default error handler behaves.

  • It throws during development, triggering the global error handler.
  • It only logs/does not throw in production, causing error events missing in the error reporting loop.
  • The difference in behavior causes confusion

Proposed Solution

Explicitly mention the default behaviour and link to properties to configure this.
Feel free to suggest improvements or different solutions.

Preview: https://deploy-preview-3320--vuejs.netlify.app/api/application.html#app-config-errorhandler

Additional Information

I spend multiple hours trying to detect why no errors were reported to our monitoring solution.
In the end, I had to look into the default error handler source code to become aware of the throwunhandlederrorinproduction property.
During my search I didn't find any other part in the documentation mentioning this behavior, the errorhandler and throwunhandlederrorinproduction properties being separated by a bunch of other properties didn't help either.

@netlify
Copy link

netlify bot commented Dec 10, 2025

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit cf38567
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6939f6b09dfec4000829095a
😎 Deploy Preview https://deploy-preview-3320--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant