-
Hello, I have a react project setup with create-react-app. I have also installed this react-table library, but the moment I try to use the argument useSortBy I get the following error:
I do not know how to fix this error without ejecting my app from create-react-app which allows me to change the Babel config. Is there a way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have solved same problem. The is in import statement. Pycharm's autoimport inserts |
Beta Was this translation helpful? Give feedback.
I have solved same problem. The is in import statement. Pycharm's autoimport inserts
import { useTable } from "react-table/src/hooks/useTable";
but correct import is
`import { useTable } from "react-table";