Open davidtzoor opened 8 years ago
We have a fork that is compiled via webpack https://github.com/schrodinger/fixed-data-table-2
We also have bug fixes, new features, better documentation, etc.
Thanks! Do you know why this is happening? It seems as though it doesn't import react well.
React is only listed as a peer dependency, so I think it tries to avoid compiling using the React stub as a placeholder for the imports. I think you might be importing react as 'React' somewhere in your code causing a conflict
I tried using
fixed-data-table
with webpack, and I get the following warning when building my application:Whenever I import
fixed-data-table
as follows:import {Table, Column, Cell} from 'fixed-data-table';
I get the following error in the browser:Uncaught TypeError: Cannot read property 'number' of undefined
in theScrollbar.react.js:48
file, which is usingReact.PropTypes.Number
:contentSize: PropTypes.number.isRequired
Any idea what this is happening? I don't have issues building other packages using webpack, including React.