Vue-grid-layout: TypeError: Cannot read property 'uninstall' of undefined

Created on 5 Feb 2020  路  3Comments  路  Source: jbaysolutions/vue-grid-layout

When i use Grid Layout and Grid item, these errors appear:

package json - agil-online-frontend-quasar - Visual Studio Code  Administrator

I am using "vue-grid-layout": "^2.3.6"

Most helpful comment

should be fixed in the next release

All 3 comments

I am also seeing this. It doesn't produce any noticable visual bugs since it is on unmount but the errors are definitely jarring.

I was receiving the same error and also came here looking for resolution

In my scenario I got rid of the error by using a dynamic import for the component containing the vue-grid-layout

I'm using the standard project layout created by the Vue CLI and have a Collection component which contains the vue-grid-layout, changing this:

...
import Collection from "../components/Collection.vue"

export default {
  components: {
    Collection
  }
}
...

to this:

...
export default {
  components: {
    Collection: () => import("../components/Collection.vue")
  }
}
...

Got rid of the error for me.

Hope that helps!

should be fixed in the next release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goalie7 picture goalie7  路  6Comments

msiggi picture msiggi  路  5Comments

mateo2181 picture mateo2181  路  6Comments

RBrNx picture RBrNx  路  3Comments

jeremytiki picture jeremytiki  路  4Comments