Open cvanem opened 1 year ago
Same problem here.
Ran into this, don't believe it's a Vercel issue - I ended up deploying on Netlify and had the same issue.
Workarounds are in here https://github.com/mui/material-ui/issues/35450, but I'd love to know why this only happens when it's hosted externally, I can't replicate locally even with a production build.
Verify canary release
Provide environment information
The problem only occurs after deployment on Vercel.
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://github.com/cvanem/vercel-wildcard-import-reproduction
To Reproduce
Here is a live example of the above repository: https://vercel-wildcard-import-reproduction.vercel.app/ Here is a live example of the api timeout: https://vercel-wildcard-import-reproduction.vercel.app/api/hello
To reproduce (explained in code):
In _app.tsx use:
In _app.tsx import this: import * as Icons from "@mui/icons-material";
In _app.tsx use: