T
TanStack3y ago
national-gold

Client-side exception on NextJS deployment

I have a Tanstack table that works perfectly in dev, but fails in prod. I get this error:
framework-3b5a00d5d7e8d93b.js:9 TypeError: Cannot read properties of undefined (reading 'filter')
at 338-40b21a5eb2cada72.js:42:10338
at Object.getVisibleLeafColumns (338-40b21a5eb2cada72.js:39:249)
at 338-40b21a5eb2cada72.js:42:5838
at Object.getHeaderGroups (338-40b21a5eb2cada72.js:39:249)
at u (index-ef857841339be48b.js:1:1605)
at ak (framework-3b5a00d5d7e8d93b.js:9:60917)
at i (framework-3b5a00d5d7e8d93b.js:9:119475)
at oD (framework-3b5a00d5d7e8d93b.js:9:99114)
at framework-3b5a00d5d7e8d93b.js:9:98981
at oO (framework-3b5a00d5d7e8d93b.js:9:98988)
a9 @ framework-3b5a00d5d7e8d93b.js:9
main-f2e125da23ccdc4a.js:1 TypeError: Cannot read properties of undefined (reading 'filter')
at 338-40b21a5eb2cada72.js:42:10338
at Object.getVisibleLeafColumns (338-40b21a5eb2cada72.js:39:249)
at 338-40b21a5eb2cada72.js:42:5838
at Object.getHeaderGroups (338-40b21a5eb2cada72.js:39:249)
at u (index-ef857841339be48b.js:1:1605)
at ak (framework-3b5a00d5d7e8d93b.js:9:60917)
at i (framework-3b5a00d5d7e8d93b.js:9:119475)
at oD (framework-3b5a00d5d7e8d93b.js:9:99114)
at framework-3b5a00d5d7e8d93b.js:9:98981
at oO (framework-3b5a00d5d7e8d93b.js:9:98988)
$ @ main-f2e125da23ccdc4a.js:1
main-f2e125da23ccdc4a.js:1 A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred
framework-3b5a00d5d7e8d93b.js:9 TypeError: Cannot read properties of undefined (reading 'filter')
at 338-40b21a5eb2cada72.js:42:10338
at Object.getVisibleLeafColumns (338-40b21a5eb2cada72.js:39:249)
at 338-40b21a5eb2cada72.js:42:5838
at Object.getHeaderGroups (338-40b21a5eb2cada72.js:39:249)
at u (index-ef857841339be48b.js:1:1605)
at ak (framework-3b5a00d5d7e8d93b.js:9:60917)
at i (framework-3b5a00d5d7e8d93b.js:9:119475)
at oD (framework-3b5a00d5d7e8d93b.js:9:99114)
at framework-3b5a00d5d7e8d93b.js:9:98981
at oO (framework-3b5a00d5d7e8d93b.js:9:98988)
a9 @ framework-3b5a00d5d7e8d93b.js:9
main-f2e125da23ccdc4a.js:1 TypeError: Cannot read properties of undefined (reading 'filter')
at 338-40b21a5eb2cada72.js:42:10338
at Object.getVisibleLeafColumns (338-40b21a5eb2cada72.js:39:249)
at 338-40b21a5eb2cada72.js:42:5838
at Object.getHeaderGroups (338-40b21a5eb2cada72.js:39:249)
at u (index-ef857841339be48b.js:1:1605)
at ak (framework-3b5a00d5d7e8d93b.js:9:60917)
at i (framework-3b5a00d5d7e8d93b.js:9:119475)
at oD (framework-3b5a00d5d7e8d93b.js:9:99114)
at framework-3b5a00d5d7e8d93b.js:9:98981
at oO (framework-3b5a00d5d7e8d93b.js:9:98988)
$ @ main-f2e125da23ccdc4a.js:1
main-f2e125da23ccdc4a.js:1 A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred
I have ZERO idea how to fix this. Any ideas? Here's a StackBlitz so you can check it out. - https://stackblitz.com/edit/nextjs-pf2fbn?file=README.md It fails on CloudFlare pages (regular and SSG) - as well as AWS Amplify
Joel R Hager
StackBlitz
Nextjs (forked) - StackBlitz
The React framework for production.
1 Reply
conscious-sapphire
conscious-sapphire3y ago
Same problem here. I'm using SST + Nextjs 12, everything works fine on dev, but getting the same error when I deploy spent several hours, have no idea what's going on Downgrading to 8.7.0 solved the problem for now https://discord.com/channels/719702312431386674/959510176220717056/1054144007996985394

Did you find this page helpful?