The front-end error report is as follows:
[Vue warn]: Error in render: “TypeError: Cannot read property’_t’ of undefined”
It is the compatibility problem between vue and i18n that multi-language configuration is used in the project. The solution is as follows:
Vue.use(iView)
Replace with
Vue.use(iView, {
i18n: function(path, options) {
let value = i18n.t(path, options)
if (value !== null && value !== undefined) {
return value
}
return ''
}
})
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“
- Datatable plug-in error: uncaught typeerror: cannot read property ‘style’ of undefined
- TypeError: Cannot read property thisCompilation of undefined
- Error in created hook: “typeerror: cannot read property ‘cm’ of undefined”
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- Error in mounted hook: “TypeError: Cannot read property ‘init‘ of undefined“
- [_ Note] Vue.js reported an error: Cannot read property’validate’ of undefined”
- In Vue, use echorts to report an error: “typeerror: cannot read property ‘init’ of undefined” error reporting reason and solution
- 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
- Error reported by wechat applet: cannot read property ‘forceupdate’ of undefined
- Uncaught type error: cannot read property ‘MSIE’ of undefined
- [Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘map‘ of null“