This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
Unconditional access to global __VUE_PROD_DEVTOOLS__ breaks SSR #1715
Labels
Status: Review Needed
Request for review comments
Reporting a bug?
vue-i18n attempts to read a global
__VUE_PROD_DEVTOOLS__
variable. This causes aReferenceError
in some engines, especially in an SSR context with recent node versions:See also vikejs/vike#1778 (reply in thread).
Expected behavior
globalThis
shoud be checked using'__VUE_PROD_DEVTOOLS__' in globalThis
before attempting to read the variable.Reproduction
The
i18n
branch in this repository illustrates the issue usingvike-vue
: https://github.com/s-ol/_vike-vue-i18n-repro/tree/i18nSystem Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: