upload_source_maps=true is not working

I made a Hono API, and when I log the error in my logging middleware it doesn't show the original file location. It look like:
Error: test
at index.js:82326:11
at async dispatch (index.js:39507:17)
at async index.js:78518:5
at async dispatch (index.js:39507:17)
at async index.js:45786:5
at async dispatch (index.js:39507:17)
at async index.js:79119:5
at async dispatch (index.js:39507:17)
at async dispatch (index.js:39507:17)
at async cors2 (index.js:45871:5)
Error: test
at index.js:82326:11
at async dispatch (index.js:39507:17)
at async index.js:78518:5
at async dispatch (index.js:39507:17)
at async index.js:45786:5
at async dispatch (index.js:39507:17)
at async index.js:79119:5
at async dispatch (index.js:39507:17)
at async dispatch (index.js:39507:17)
at async cors2 (index.js:45871:5)
How can I fix that?
2 Replies
masd4
masd42mo ago
yeah it didn't work for me either but I assumed that maybe it's because I tried it in a larger astro project build and their build tool somehow messes with sourcemaps
cojo
cojo2mo ago
I am also experiencing this issue on Pages Functions, FWIW. The source maps I upload to Sentry don't seem to match the final file that is in the Pages deployment - it thinks it's mapping, but it gets it completely wrong.
Want results from more Discord servers?
Add your server