T
TanStack3y ago
inland-turquoise

React Table declaration failing to merge w/ pnpm

with the file tanstack-table.d.ts
import '@tanstack/react-table';

declare module '@tanstack/table-core' {
interface ColumnMeta {
truncate?: boolean;
center?: boolean;
}
}
import '@tanstack/react-table';

declare module '@tanstack/table-core' {
interface ColumnMeta {
truncate?: boolean;
center?: boolean;
}
}
I fail to get this ColumnMeta merged with the tanstack types, while this works when using npm.
No description
2 Replies
inland-turquoise
inland-turquoiseOP3y ago
It appears that running pnpm add -D @tanstack/table-core solved my problem.
inland-turquoise
inland-turquoiseOP3y ago
GitHub
ColumnDef Meta cannot be declared with pnpm · Issue #4597 · TanStac...
Describe the bug When using pnpm as a package manager, @tanstack/table-core is not installed in node_modules, as this is only a dependency of @tanstack/react-table. As such, this table-core package...

Did you find this page helpful?