It seems to happen when several columns have different return types in their accessorFn, this error happens:
Exported variable 'Columns' has or is using name 'AccessorFnColumnDefBase' from external module "/node_modules/@tanstack/table-core/build/lib/types" but cannot be named.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
Do you intend to try to help solve this bug with your own PR?
Yes, I am also opening a PR that solves the problem along side this issue
Terms & Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
TanStack Table version
8.15.0
Framework/Library version
18
Describe the bug and the steps to reproduce it
Similar to issue https://github.com/TanStack/table/issues/5135 (for AccessorKeyColumnDefBase), in this case the error comes from AccessorFnColumnDefBase.
It seems to happen when several columns have different return types in their accessorFn, this error happens:
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
See the bottom of this TS playground
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
Yes, I am also opening a PR that solves the problem along side this issue
Terms & Code of Conduct