File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/vue-i18n-core/src/mixins Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,11 @@ export function defineMixin(
102102 mounted ( ) : void {
103103 nextTick ( ( ) => {
104104 /* istanbul ignore if */
105- if ( ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) && ! __NODE_JS__ ) {
105+ if (
106+ ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) &&
107+ ! __NODE_JS__ &&
108+ this . $el
109+ ) {
106110 this . $el . __VUE_I18N__ = this . $i18n . __composer
107111 const emitter : VueDevToolsEmitter = ( this . __v_emitter =
108112 createEmitter < VueDevToolsEmitterEvents > ( ) )
@@ -122,7 +126,12 @@ export function defineMixin(
122126
123127 nextTick ( ( ) => {
124128 /* istanbul ignore if */
125- if ( ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) && ! __NODE_JS__ ) {
129+ if (
130+ ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) &&
131+ ! __NODE_JS__ &&
132+ this . $el &&
133+ this . $el . __VUE_I18N__
134+ ) {
126135 if ( this . __v_emitter ) {
127136 this . __v_emitter . off ( '*' , addTimelineEvent )
128137 delete this . __v_emitter
You can’t perform that action at this time.
0 commit comments