Skip to content

Trouble getting Gridstack to show #4

@SamesJeabrook

Description

@SamesJeabrook

I keep getting an error Uncaught TypeError: this.cellHeight is not a function

this appears to be the window object. The compiled code returns GridStack = function(el, opts) I think here el is appearing as the opts as its passing the cellHeight and vertical here and not on opts.

I'm not sure if this is my implementation of it. GridStack was not defined if I included it as the original example import {GridStack, GridStackItem} from 'react-gridstack'; I have instead separated this into two imports and GridStack is defined.

I have also had problems with the example to which I have had to wrap the <GridStack> output in a return function.

I'm not sure where exactly I'm going wrong, I've tried various things to dance around its implementation but to no avail. Do you have a live example or anything to follow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions