Hi There!, We’ve facing issues with production URL for my site. The build of this project is completely success without error or any issues but when we open this site on chrome or brave browser, we get the internal server error 500.
I just check it and got this error: “ERROR TypeError: file.startsWith is not a function”, but i have another website that similar to this one and its worked fine.
@vileapvong I didn’t ask what it does, I asked if there is a visible Call stack.
I don’t work for Netlify, I have no visibility beyond what you share here.
If your code has no references to file then the error may be in “literally anything else that’s executing”, so if you suspect it’s in something ‘Next’ or something ‘Netlify’ it may very well be… but if there’s a Call stack it’d usually reveal that.
(Note: I probably can’t fix whatever the issue is, I’m just hoping that by getting you to answer questions I ask, and subsequently provide more info, that when Netlify do spot this thread they’re more inclined to investigate for you)
Thanks for reaching out! Sorry to hear about the issue. I see the latest build today is now using the latest version 4.41.3 of the Netlify/Next.js runtime (updated from 4.33.0), which should resolve the issue. Let us know if you’re still seeing this error.