Closed sunstrikemd closed 3 years ago
Can you try with react-data-grid 7.0.0-canary.30?
I'm using react-data-grid 7.0.0-canary.33. here's link to json I have for better understanding of dependencies I have - https://github.com/gpn-prototypes/vega-rb/blob/develop/package.json
The issue I have: After update from 7.0.0-canary.16 to *33 I've changed import of wrapEvent. I imported wrapEvent from grid/lib/utils as there's index file that exports everything. Ts wasn't marking any error but still build fails with "can't resolve module" error. So I specified it to grid/lib/utils/domUtils. Still same issue. Then I decided to implement wrapEvent and prevent default in my proj instead. Solution worked but the issue appeared in other place.
Now it says - Unable to resolve path to module 'react-data-grid/lib/types' Though if I follow this path I see needed export there, everything seems correct.
You shouldn't need to transpile react-data-grid anymore. If you still encounter issues, please open a new issue.
Hello everyone,i'm using webpack with typescript(ts-loader) instead of babel and i can't get react-data-grid work properly. Bundle compiles without any errors and in my code when i use:
import DataGrid from 'react-data-grid',
DataGrid is always an empty object instead of react element. Maybe someone faced the same problem?webpack.config.js
tsconfig.json
package.json
I use react-data-grid 7.0.0-canary.22