-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: possibleFilePath?.replace is not a function #10741
Comments
Hello @shishkin. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
The change you've identified seems reasonable. Although, ideally we would be able to recreate the error before correcting it. Could you share what CI server this occurs on alongside a small project? Is it running a non-Node runtime? |
That's the problem - I can't reproduce the error anywhere else except the on-prem GitLab CI runner. It's a proxmox container on a x86_64 machine. Runtime is Node 20. And because astro is failing on the error handling I don't see what the real error is. The change that triggered the error was a release configuration in sentry integration. Probably it fails inside its vite plugin. |
Could you run another build with |
I got this bug too, this lead to build fails on vercel. my astro version 4.5.16 |
@HananoshikaYomaru do you see the real error after deploying with |
@lilnasy thanks for the quick response. I can confirm that |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I get the following error when building on CI server:
Unfortunately, I can't reproduce it locally or on stackblitz. It actually masks another error I'm debugging. However, looking at the code, I see a potential mistake that the second
replace
is not called defensively:In any case,
collectInfoFromStacktrace
function is not robust against potentially missing data.What's the expected result?
Astro's error handling should be robust. Showing raw error is always better than masking the error with own failure.
Link to Minimal Reproducible Example
N/A
Participation
The text was updated successfully, but these errors were encountered: