question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property '__VUE_I18N__' of null at updateComponentTreeTags

See original GitHub issue

Reporting a bug?

This error is being thrown from vue-devtools-plugin-vue-i18n. For some reason instance.vnode.el can be null when vnode is RouterView. See attached screenshot.

A quick fix would be to do this if (instance && instance.vnode.el?.__VUE_I18N__) or if (instance && instance.vnode.el && instance.vnode.el.__VUE_I18N__).

Expected behavior

No errors in dev tools console

Reproduction

Create nested routes where parent route component is SFC with only <router-view /> in template block.

System Info

System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 111.26 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.17.0 - ~/.volta/tools/image/node/14.17.0/bin/node
    npm: 6.14.13 - ~/.volta/tools/image/node/14.17.0/bin/npm
  Browsers:
    Brave Browser: 92.1.27.108
    Chrome: 92.0.4515.107
    Firefox: 88.0
    Safari: 14.1.1
  npmPackages:
    vue: ^3.1.5 => 3.1.5 
    vue-i18n: ^9.2.0-beta.1 => 9.2.0-beta.1

Screenshot

Screenshot 2021-07-29 at 09 01 51 Screenshot 2021-07-29 at 09 03 30

Additional context

No response

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mreduarcommented, May 23, 2022

@kazupon When will this be added to the stable version?

1reaction
kazuponcommented, May 25, 2022

I’m working on nuxt/i18n with the nuxt community. when nuxt/i18n v8 beta is released, I’ll release the vue-i18n v9.2 rc version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue-i18n 'Cannot read property '_t' of undefined at Proxy.Vue.$t'
I'm using vue-cli-3 webpack config and installed vue-i18n from npm and using as a plugin. i18n.js (in src/plugins directory): import Vue from ' ......
Read more >
How to fix Vue I18n Uncaught TypeError - Our Code World
How to fix Vue I18n Uncaught TypeError: Cannot read property 'config' of undefined. I've been working on a Vue.js app that needs to...
Read more >
API references | Vue I18n
Merge the registered locale messages with the locale message of locale. NOTE. 8.11+. If you set warn or error in the warnHtmlInMessage property, ......
Read more >
The Ultimate Vue Localization Guide | Phrase
Dive into Vue localization and learn how to plug the Vue I18n library into your ... Note » Our App houses a Vue...
Read more >
Vue-i18n "TypeError: Cannot read property '_t' of undefined"
vue version:2.3.4 vue-i18n version: 6.1.3 I have import the vue and vue-i18n in the app.vue import Vue from 'vue' import VueI18n from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found