-
-
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
Error RangeError: Maximum call stack size exceeded
#4090
Comments
A code sandbox reproducing this is probably the only way this could be debugged. Though look into making sure your data is memoized or stable |
I understand! finally, I made it - https://github.com/amantiwari1/react-table-bugs code sandbox - https://codesandbox.io/s/headless-violet-yskpzy there is no terminal in the code sandbox so for debugging, you might clone https://github.com/amantiwari1/react-table-bugs
error come |
@KevinVandy any update? |
@amantiwari1 I'm encountering the same issue today and working through solving it. Have you tried starting with the example at https://react-table-v7.tanstack.com/docs/quick-start and building on that? |
@PerryRylance version 7 works fine |
@tannerlinsley do you have any idea how to fix this bug? |
Happens to me with V8 too const tableOptions: TableOptions<RowDataType> = {
data,
columns,
defaultColumn,
getCoreRowModel: getCoreRowModel(),
};
const table: any = useReactTable(tableOptions); Where export type RowDataType = {
id: number,
__note__: NoteInfo,
[key: string]: Literal | NoteInfo
} And columns an array of export interface BaseColumn {
csvCandidate?: boolean;
accessor: string;
label: string;
key: string;
position?: number;
isMetadata?: boolean;
skipPersist?: boolean;
isDragDisabled?: boolean;
config: ConfigColumn;
}
export interface TableColumn extends BaseColumn {
isSortedDesc?: boolean;
isSorted?: boolean;
id: string;
minWidth?: number;
width?: number;
dataType: string;
options?: RowSelectOption[];
Cell?: any;
getHeaderProps?: any;
getResizerProps?: any;
} I suppose that the problem comes from the type of Object that is declared, if I find any other clue I will post here. BTW thanks for this fantastic library. I am trying to migrate to v8 my repo https://github.com/RafaelGB/obsidian-db-folder |
The codesandbox supplied here is not a reproducible example. It appears to just be a dump of a repo into code sandbox. In order for me to help debug this, I need something I can open and run right away and see an error. Also, does the code work at runtime, but not during typechecking? I don't understand why you are seeing this error when you run If it's not working at runtime, my best guess here is that you are not memoizing something like Please reopen a new issue with the codesandbox repro and I'll take a deeper look. Thanks! |
I can confirm that with 8.2.1 the problem was fixed. Thanks! |
same here, it is working great btw thank you for making amazing this library 🚀🚀🎉🎉 |
Describe the bug
After working migrated v7 to v8
I tested tsc and suddenly error comes
I confirmed it is related to react table
because I commented on it and it works
But unable to figure to fix it
here's code
Your minimal, reproducible example
no terminal support :/ on this platform
Steps to reproduce
npx tsc
oryarn tsc
Expected behavior
no error :)
How often does this bug happen?
Only once
Screenshots or Videos
No response
Platform
OS - Windows 11
Edge - 103.0.1264.44
react-table version
8.1.3
TypeScript version
4.4
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: