wrangler pages deploy - source maps #4234
Replies: 4 comments 1 reply
-
I was able to get the @mrbbot any idea what the cause of this offset could be? |
Beta Was this translation helpful? Give feedback.
-
@richardscarrott No, I still haven't found a solution for this issue. It makes me wonder if anyone is actually using Remix + Cloudflare Pages in a real, production app 🤔 . Figuring out source maps should be a high-priority item IMO. As I mentioned before, it is hard to deploy code to production when you can't confidently track down the source of errors/bugs. Thanks for the hint about Advanced Mode. I'll check it out and see if that will work for us. Would you be able to share the changes you've made to the default template? |
Beta Was this translation helpful? Give feedback.
-
The sourcemaps in a normal worker, vscode and attaching to wrangler dev is misaligned. The line numbers do not match. |
Beta Was this translation helpful? Give feedback.
-
Looks like #5861 may help with this issue |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to get access to the source maps for the
functionsWorker
files that are built and deployed when usingwrangler pages deploy
?Currently, our error logs look like this:
Without source maps, it is difficult to track down the code responsible for the error.
I am using Cloudflare Pages with Remix. My Remix build script does generate source maps. But they don't match up with the file that
wrangler pages deploy
uploads. It seems to be offset by 50-60 lines.Our log aggregator doesn't support uploading source maps, but if I was somehow able to access the real source maps, I could use a tool like https://github.com/mifi/stacktracify to manually do the mapping.
It is hard to deploy code to production when you can't confidently track down the source of errors/bugs.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions