hikaya-io / hakawati

A collection of UI components
GNU General Public License v3.0
2 stars 1 forks source link

TypeError: Cannot read properties of undefined (reading 'style') #295

Closed andrewtpham closed 2 years ago

andrewtpham commented 2 years ago

Current behavior

[Vue warn]: Error in mounted hook: "TypeError: elTableBefore is undefined"

vue.runtime.esm.js:620 [Vue warn]: Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'style')"

found in

---> <HTable>
       <ElCol>
         <ElRow>
           <Metrics> at src/metrics/views/index.vue
             <ElMain> at packages/main/src/main.vue
               <ElContainer> at packages/container/src/main.vue
                 <Main> at src/common/layout/Main.vue
                   <App> at src/core/App.vue
                     <Root>
warn @ vue.runtime.esm.js:620
vue.runtime.esm.js:1887 TypeError: Cannot read properties of undefined (reading 'style')
    at VueComponent.mounted (hakawati.umd.js:49823:21)
    at invokeWithErrorHandling (vue.runtime.esm.js:1853:57)
    at callHook (vue.runtime.esm.js:4213:7)
    at Object.insert (vue.runtime.esm.js:3136:7)
    at invokeInsertHook (vue.runtime.esm.js:6336:28)
    at VueComponent.patch [as __patch__] (vue.runtime.esm.js:6555:5)
    at VueComponent.Vue._update (vue.runtime.esm.js:3942:19)
    at VueComponent.updateComponent (vue.runtime.esm.js:4060:10)
    at Watcher.get (vue.runtime.esm.js:4473:25)
    at Watcher.run 

To Reproduce Steps to reproduce the behavior:

  1. Go to Metrics > Project List page
  2. Inspect console
  3. See error

Expected behavior No error

Screenshots

image image
andrewtpham commented 2 years ago

This is identified to be a hakawati issue with the table component

andrewtpham commented 2 years ago

@Kimaiyo077 tested 0.1.83 in dots FE and still receiving the error on the projects page:

image

Are you able to replicate the error?