JavaScript ag-grid-react crashing on basic component import: missing react-dom-factories

When importing a basic component I have webpack crash on me. I'm unsure as to why this is happening but it seems to be a missing lib within the ag-grid-react package... Has anyone run into this before? Any advice would be much obliged!

import Table from './components/Table'

When creating the Table component it compiles ok, but as soon as I import it as above, it crashes webpack.

// Table.js

import React, { Component } from "react";
import { AgGridReact } from "ag-grid-react";

class Table extends Component {
  constructor(props) {
    super(props);

    this.state = {
      columnDefs: this.createColumnDefs(),
      rowData: this.createRowData()
    };
  }

  onGridReady(params) {
    this.gridApi = params.api;
    this.columnApi = params.columnApi;

    this.gridApi.sizeColumnsToFit();
  }

  createColumnDefs() {
    return [
      { headerName: "Make", field: "make" },
      { headerName: "Model", field: "model" },
      { headerName: "Price", field: "price" }
    ];
  }

  createRowData() {
    return [
      { make: "Toyota", model: "Celica", price: 35000 },
      { make: "Ford", model: "Mondeo", price: 32000 },
      { make: "Porsche", model: "Boxter", price: 72000 }
    ];
  }

  render() {
    let containerStyle = {
      height: 115,
      width: 500
    };

    return (
      <div style={containerStyle} className="ag-fresh">
        <h1>Simple ag-Grid React Example</h1>
        <AgGridReact
          // properties
          columnDefs={this.state.columnDefs}
          rowData={this.state.rowData}
          // events
          onGridReady={this.onGridReady}
        />
      </div>
    );
  }
}

export default Table;
Answer:1

Am new to javascript i foud this one in w3schools.com - Entering pincode in search box will show in <p> tag !! How to do ? any help appreciated. Thanks in advance HTML : <form class="...

Am new to javascript i foud this one in w3schools.com - Entering pincode in search box will show in <p> tag !! How to do ? any help appreciated. Thanks in advance HTML : <form class="...

I'm trying to figure out how to compare if certain elements in two arrays compare in the same order. var compare = function (arr1, arr2) { //........ } compare ([f,t,r,m], [s,f,t,r,q,p,m]); /...

I'm trying to figure out how to compare if certain elements in two arrays compare in the same order. var compare = function (arr1, arr2) { //........ } compare ([f,t,r,m], [s,f,t,r,q,p,m]); /...

Read me: --> Im having troubles when I hover the flip card, if you move the cursor while hovering inside the div is triggering continuously and it makes an annoying effect, so here is what I need: 1) ...

Read me: --> Im having troubles when I hover the flip card, if you move the cursor while hovering inside the div is triggering continuously and it makes an annoying effect, so here is what I need: 1) ...

  1. issue with visual voicemail

I have a function that is inside a factory API.doRetrieveResults = function(name, id, values, row) { // alert(angular.toJson(values)); var getdata = { 'operation': 'RetrieveResults', '...

I have a function that is inside a factory API.doRetrieveResults = function(name, id, values, row) { // alert(angular.toJson(values)); var getdata = { 'operation': 'RetrieveResults', '...