[Vue warn]: Error in render: “TypeError: Cannot read property ‘_t’ of undefined”
The compatibility issue between Vue and i18n is the multi-language configuration used in the project. The solution is as follows:
Vue.use(iView)
replace
Vue.use(iView, {
i18n: function(path, options) {
let value = i18n.t(path, options)
if (value !== null && value !== undefined) {
return value
}
return ''
}
})
Internationalization other items are configured unchanged and are recorded only.
Reference articles:
https://github.com/iview/iview/issues/1090
Read More:
- Vue error resolution: TypeError: Cannot read property’_t’ of undefined”
- Using pop-up window and I18N, error in render: “typeerror: cannot read property” appears_ T ‘of undefined’ solution
- Vue error in render: “typeerror: cannot read property ‘name’ of undefined”
- [Solved] Vue Error: TypeError: Cannot read property ‘end‘ of undefined
- TypeError: Cannot read property ‘username‘ of undefined
- Vue: cannot read property ‘substring’ of undefined“
- TypeError: Cannot read property thisCompilation of undefined
- Datatable plug-in error: uncaught typeerror: cannot read property ‘style’ of undefined
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- Error in created hook: “typeerror: cannot read property ‘cm’ of undefined”
- In Vue, use echorts to report an error: “typeerror: cannot read property ‘init’ of undefined” error reporting reason and solution
- Error in mounted hook: “TypeError: Cannot read property ‘init‘ of undefined“
- [_ Note] Vue.js reported an error: Cannot read property’validate’ of undefined”
- Vue uses this. $refs. Subcomponent Ref. method to report an error: cannot read property ‘resetfields’ of undefined problem
- Cannot read property ‘substring’ of undefined in Vue
- Uncaught typeerror: cannot set property ‘of null error resolution
- Cannot read property ‘properties’ of undefined
- [Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘map‘ of null“
- Uncaught type error: cannot read property ‘MSIE’ of undefined
- Error reported by wechat applet: cannot read property ‘forceupdate’ of undefined