Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Getting error: Cannot read property 'tr' of undefined #391

Description

@rkpatel33

I am getting the following error when dropping the first simple example into a basic react component inside a React/Electron project:

image

Seems the line it's failing on is this one, with _react2['default'].DOM undefined.

image

Not sure what the issue could be, but maybe a version conflict between React and Reactable?

I am using the follow versions:

    "react": "^16.0.0",
    "react-dom": "^16.0.0",
    "reactable": "^0.14.1",
    "electron": "1.7.8",

    "babel-register": "^6.26.0", // to compile ES6

Here is the full code for my react component that is using Reactable:

// Libraries
import React from 'react';
import Reflux from 'reflux';

// Stores
import DashboardStore from '../../stores/DashboardStore.js';

// Components
import Label from '../base/Label.jsx';
import { Table } from 'reactable';

export default class DashboardPaneProfile extends Reflux.Component {
  constructor(props) {
    super(props);
    this.state = {};
    this.store = DashboardStore;
  }

  render() {
    return (
      <div className="al-dashboard-pane-profile">
        <h1>Profile</h1>

        <Table className="table" data={
          [
            { Name: 'Griffin Smith', Age: 18 },
            { Age: 23,  Name: 'Lee Salminen' },
            { Age: 28, Position: 'Developer' }
          ]
        } />
      </div>

    );
  }
}

// Types
DashboardPaneProfile.propTypes = {
};

// Defaults
DashboardPaneProfile.defaultProps = {
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions