Vercel + Tanstack + MUI
Hey guys has anybody had any problems trying to use Vercel with tanstack/start and router?
I keep getting the following error from the build
"H3Error: EMFILE: too many open files," and it's never the same "open file" it always outputs different files
H3Error: EMFILE: too many open files, open '/var/task/node_modules/@mui/material/esm/FormControl/FormControlContext.js'
H3Error: EMFILE: too many open files, open '/var/task/node_modules/react-icons/lib/iconsManifest.mjs'
etc.
3 Replies
other-emerald•2mo ago
Try importing things from MUI like this if you aren't already https://mui.com/material-ui/guides/minimizing-bundle-size/#avoid-barrel-imports
Minimizing bundle size - Material UI
Learn how to reduce your bundle size and improve development performance by avoiding costly import patterns.
other-emerald•2mo ago
It looks like it's a problem with how many files are in your assets during an SSR page load because everything is bundle split there may be too many files > 1024 open at once
yelping-magentaOP•2mo ago
Yes that is definitely the problem, i am importing everything the way it suggest i am not using barrel imports