question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not use react-table

See original GitHub issue

Describe the bug I would like to use react-table for displaying data in table. But seem to a conflict of babel version.

To Reproduce Steps to reproduce the behavior:

  1. Install react-table: npm install --save react-table
  2. The program will fail when run any test (during npm start/build/…). The error is:

` FAIL src/components/AboutPage.spec.js Test suite failed to run

Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.

  at throwVersionError (node_modules/@babel/helper-plugin-utils/lib/index.js:65:11)
  at Object.assertVersion (node_modules/@babel/helper-plugin-utils/lib/index.js:13:11)
  at _default (node_modules/@babel/plugin-proposal-class-properties/lib/index.js:81:7)
  at node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
      at Array.map (<anonymous>)

` 3. Because of that I can not create test or build the program

Request Please tell me how to use react-table with slingshot; I think there will be a way to specific jest to load babel 7.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
nickytonlinecommented, Feb 24, 2019

Probably best to do both.

1reaction
nickytonlinecommented, Feb 24, 2019

Would you like to put a PR up to update the jest dependency?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Can't resolve 'react-table/react-table.css'
I have create the app using create-react ...
Read more >
react-table - npm
Start using react-table in your project by running `npm i react-table`. There are 1543 other projects in the npm registry using react-table.
Read more >
TanStack/table: Headless UI for building powerful ... - GitHub
TanStack Table is a headless table library, which means it does not ship with ... If you want a ready-to-use component-based table with...
Read more >
React Table Tutorial:How to implement useTable and useFilter
Learn about React Table v7 and its new features in this React Table tutorial. Moreover, explore how can you implement useTable and useFilter ......
Read more >
API Reference: useTable | React Table - TanStack
useTable is the root hook for React Table. To use it, pass it with an options object with at least a columns and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found