Have you already searched for similar issues? Please help us out and double-check first!
Also, please don't be that person who deletes this template. It's here for a reason.
Thanks!
✅ Officially supported ✅
⚠️ Not officially supported, expect warnings ⚠️
☣️ Not officially supported, expect warnings and errors ☣️
✅ Officially supported ✅
⚠️ Not officially supported, but "should work" ⚠️
👋 Need general support? Not sure about how to use React itself, or how to get started with the Grid?
Please do not submit support request here. Instead see
https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md
Please include:
When trying to use a filterable table with React 16 the page won't load. The following error is reported in the console:
Uncaught TypeError: Cannot read property 'oneOfType' of undefined
at Object.defineProperty.value (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:30538)
at __webpack_require__ (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:30)
at Object.defineProperty.value (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:29772)
at __webpack_require__ (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:30)
at Object.defineProperty.value (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:26914)
at __webpack_require__ (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:30)
at Object.defineProperty.value (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:26861)
at __webpack_require__ (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:30)
at Object.defineProperty.value (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:14313)
at __webpack_require__ (webpack-internal:///./node_modules/react-data-grid-addons/dist/react-data-grid-addons.js:30)
The above references the following code in the 'react-data-grid-addons' file:
var Portal = _react2.default.createClass({
displayName: 'Portal',
propTypes: {
/**
* A Node, Component instance, or function that returns either. The `container` will have the Portal children
* appended to it.
*/
container: _react2.default.PropTypes.oneOfType([_componentOrElement2.default, _react2.default.PropTypes.func])
},
Hi @cimigree, React 16 is not officially supported. Please take a look at this comment for a possible workaround.
@amanmahajan7 Any updates? Or anything we can help to fix these? Given many people are using React 16 now, maybe it's time for us to support it.
@tonytangau we are actively working v4 and it should fully support React 16. There is no set timeline at the moment but we are targeting next month. In the meantime you can use react-data-grid@next if you need immediate React 16 support but this is still work in progress.
@amanmahajan7 great news! Thanks for the update.
@amanmahajan7
Will the following functionalities work with this version - _react-data-grid@next_
My app is using other plugins that dependent on React16, hence I can't downgrade the react version where RDG works. so, eagerly waiting for the react-data-grid to support v16.
@amanmahajan7
Hello, Is there any update on the issue "react-data-grid-addons breaking on oneOfType using toolbar and data with React 16" for react-data-grid-addons
Thanks, Reetika
Most helpful comment
@tonytangau we are actively working
v4and it should fully support React 16. There is no set timeline at the moment but we are targeting next month. In the meantime you can usereact-data-grid@nextif you need immediateReact 16support but this is still work in progress.