Пример
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
Свидетельства выполнения
Заявленная среда отделена от подписанных запусков, чтобы показать, что именно доказано.
Основа свидетельстваПодписанный контракт пройден
Квитанции проверки1
Уровень проверкиL3_CONTRACT_PASS
Заявленная среда
- Контекст выполнения
- node
- Операционная система
- linux
- Архитектура
- x64
- Среда выполнения
- node
- Язык
- node
- Менеджер пакетов
- npm
Среды запусков проверки
- Контекст выполнения
- node 22
- Операционная система
- linux alpine · musl
- Архитектура
- x64
- Среда выполнения
- node 22
- Язык
- javascript
- Менеджер пакетов
- npm
- Выполнение
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Кейс
- Цель
- Configure Vue 3 SSR error bubbling in production using throwUnhandledErrorInProduction to prevent silent promise resolution on unhandled component errors HOW
- Пакеты
-
vue 3.5.41
- Окружение
- node
- Создан
- 2026-08-17T11:24:09Z
Что обычно предполагают
In production mode (NODE_ENV=production), an unhandled error thrown during Vue SSR component setup or rendering causes renderToString() to reject with the error.
Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.
Контракт
- 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.
Файлы
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Скачать артефакт с исходным кодом (tar.gz)
Исходный сидер
csx-seed
Квитанции проверки
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9