table icon indicating copy to clipboard operation
table copied to clipboard

Attempted import error: 'react-table' does not contain a default export (imported as 'ReactTable').

Open kodcuserkan opened this issue 6 years ago • 1 comments

Using v6?

v6 is now considered feature complete to its current abilities and limitations. We are not actively working to fix any issues for v6 any more. We will, however, merge any non-breaking pull requests submitted to fix anything in v6.

Using v7?

Thanks for using the beta version of React Table v7! We're very excited about it.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Codesandbox! Use a new react-table codesandbox to reproduce the issue.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

kodcuserkan avatar Jan 31 '20 09:01 kodcuserkan

You're trying to import ReactTable from 'react-table', that's not gonna work, buddy. Checkout the most basic example: https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/basic

zebrahondje avatar Feb 04 '20 08:02 zebrahondje