Cannot read property '__VUE_I18N__' of null at updateComponentTreeTags
See original GitHub issueReporting 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
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kazupon When will this be added to the stable version?
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