React-table: Unknown plugin "transform-object-rest-spread"

Created on 19 Jun 2018  路  2Comments  路  Source: tannerlinsley/react-table

I've installed react-table with npm.

What version?

"react": "16.4.1",
"react-table": "^6.8.6",
"webpack": "^1.12.15",

The issue

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

What are the steps to reproduce the issue?

  1. npm install react-table
  2. import ReactTable from 'react-table' in .jsx
  3. The issue

Most helpful comment

Installing the babel plugins fixed my issue

npm install --save babel-plugin-transform-object-rest-spread
npm install --save babel-plugin-transform-class-properties

All 2 comments

Installing 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dilipsundarraj1 picture dilipsundarraj1  路  3Comments

mellis481 picture mellis481  路  3Comments

monarajhans picture monarajhans  路  3Comments

esetnik picture esetnik  路  3Comments

alexanderwhatley picture alexanderwhatley  路  3Comments