I've installed react-table with npm.
"react": "16.4.1",
"react-table": "^6.8.6",
"webpack": "^1.12.15",
ERROR in ./~/react-table/lib/index.js
Module build failed: ReferenceError: Unknown plugin "transform-object-rest-spread" specified in "project/node_modules/react-table/package.json.env.development" at 0, attempted to resolve relative to "project/node_modules/react-table"
at project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
at Array.map (native)
at Function.normalisePlugins (project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at OptionManager.init (project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (project/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (project/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (project/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (project/node_modules/babel-loader/lib/index.js:46:20)
at Object.module.exports (project/node_modules/babel-loader/lib/index.js:163:20)
@ ./src/component/components/index.jsx
npm install react-tableimport ReactTable from 'react-table' in .jsxInstalling the babel plugins fixed my issue
npm install --save babel-plugin-transform-object-rest-spread
npm install --save babel-plugin-transform-class-properties
This feature/issue has been tagged as one that will likely be fixed or improved in the next major release of React-Table. This release is expected to be completed in the next 6 - 8 months. Please see #1143 for more detail. If you believe this feature can be easily fixed, we invite you to fork the project, attempt the fix, and use it until the latest version is available. If the fix is simple enough, we will also consider it as a PR to the current version.
Most helpful comment
Installing the babel plugins fixed my issue