At the beginning, I put the initialization and instance of the map in the created hook function. As a result, I reported an error
Error in created hook: “TypeError: Cannot read property ‘CM’ of undefined”
When ecarts was used before, it would report an error when it was put in created at the beginning. Later, it was put in mounted after Baidu, so it was directly put in mounted, and the effect was realized.
Learn the difference between these two hook functions and make a record to deepen your impression
Read More:
- Error in mounted hook: “TypeError: Cannot read property ‘init‘ of undefined“
- TypeError: Cannot read property ‘username‘ of undefined
- Error in created hook: “referenceerror:” promise “undefined” Vue cli project Google is right, ie reported an error, “promise” undefined“
- Vue error in render: “typeerror: cannot read property ‘name’ of undefined”
- Vue error resolution: TypeError: Cannot read property’_t’ of undefined”
- TypeError: Cannot read property thisCompilation of undefined
- Datatable plug-in error: uncaught typeerror: cannot read property ‘style’ of undefined
- Vue error resolution: typeerror: cannot read property ‘_ t’ of undefined”
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- Using pop-up window and I18N, error in render: “typeerror: cannot read property” appears_ T ‘of undefined’ solution
- [Solved] Vue Error: TypeError: Cannot read property ‘end‘ of undefined
- In Vue, use echorts to report an error: “typeerror: cannot read property ‘init’ of undefined” error reporting reason and solution
- Vue: cannot read property ‘substring’ of undefined“
- Cannot read property ‘this compilation’ of undefined appears in copy webpack plugin
- [Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘map‘ of null“
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- Error reported by wechat applet: cannot read property ‘forceupdate’ of undefined
- Cannot read property ‘substring’ of undefined in Vue
- Cannot read property ‘properties’ of undefined
- [_ Note] Vue.js reported an error: Cannot read property’validate’ of undefined”