I am using nuxt.js with element-ui. I get error "offsetWidth of undefined" in Chrome or 'this.$refs.nav is undefined' in Firefox when I change the page layout. The error occurs whenever the browser is refreshed. However I notice that in simpler page the error does not occur. Please help. Thanks
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1705">#c1705</a>)</em></sub></div>