Closed fedesilvaponte closed 3 years ago
Seems to work for me, I don't think it's related to react-table
. Also according to the errors theres nothing to indicate a connection to react-table
in the first place
working example: https://codesandbox.io/s/relaxed-pond-21gd0?file=/pages/index.js
Make sure your import looks like
import {useTable} from "react-table";
Intellij auto inserted it as
import {useTable} from "react-table/src/hooks/useTable";
which gave me this same error
Yes, that was exactly the issue. I eventually figured it out. That's what you get for blindly trusting Intelij autoimport.
import {useTable} from "react-table";
does not work for me, it's undefined. and with the intelli import, I get the error above.
I'm getting the following error when trying to use react table with the default webpack config of nextjs
There's also this other error on the console, after the first one:
For the table setup I'm using the example of the getting started page.