-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's not possible to compile the project with a table because of ts errors #4688
Comments
I've created a PR for it #4689 |
Why is your TS scanning node_modules? |
It's not I guess.
My assumption is that it checks imports and somehow sees ts errors in dependent packages. But I might be wrong. |
Most probably I found an explanation for why it fails even if node_modules are not included in TS checking
So most probably my assumption was correct. The file which is using the tanstack table library should be checked by TS. And as it has a dependency on tanstack - it causes a failure |
Most if not all projects (at least that I have ever worked on) include this in their tsconfig "exclude": [
"node_modules"
] Different projects and libraries can have very different ts configurations. Also, this is probably caused by you are importing from |
I tried to use exclude option as well but had no luck, unfortunately. |
Describe the bug
The error is happening here:
node_modules/@tanstack/table-core/src/utils/filterRowsUtils.ts:112:19
Your minimal, reproducible example
N/A
Steps to reproduce
Running a build with typescript triggers such errors to be shown
Expected behavior
Is this possible to define rows as follows:
const rows: Row<TData>[] = []
?
It's urgent for us, as we're going to use the table in production
Thank you
How often does this bug happen?
None
Screenshots or Videos
Platform
ANY
react-table version
8.7.8
TypeScript version
4.8.4
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: