Sample
Configure Vue 3 SSR error bubbling in production using throwUnhandledErrorInProduction to prevent silent promise resolution on unhandled component errors
sha256:fdf599dda05717a20bd5186b0cc716274618a3572bbdacf3c5212007e19212aa
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- node
- Operating system
- linux
- Architecture
- x64
- Runtime
- node
- Language
- node
- Package manager
- npm
Verification-run environments
- Execution context
- node 22
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Language
- javascript
- Package manager
- npm
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Case
- Goal
- Configure Vue 3 SSR error bubbling in production using throwUnhandledErrorInProduction to prevent silent promise resolution on unhandled component errors HOW
- Packages
-
vue 3.5.41
- Environment
- node
- Created
- 2026-08-17T11:24:09Z
Commonly assumed
In production mode (NODE_ENV=production), an unhandled error thrown during Vue SSR component setup or rendering causes renderToString() to reject with the error.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- In production mode, unhandled errors in component setup or rendering are suppressed and logged to console by default, causing renderToString to resolve with partial markup unless app.config.throwUnhandledErrorInProduction is set to true.
- Enabling app.config.throwUnhandledErrorInProduction causes renderToString to reject synchronously with the thrown setup or render error.
- Setting app.config.errorHandler intercepts the error before the production error-logging path, receiving the minified runtime error URL as its info parameter.
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9