Open danielplan opened 6 months ago
I'm having the exact same issue in my open source SvelteKit project https://github.com/ignacio-nacho-barbano/typescale-garden/tree/cloud-client-deploy
This is the error on local wrangler, exactly the same I see through Cludflare
BTW You can get around the issue by wrapping your rollbar instance in a try catch and making sure it exists befor using it.
Issue Description:
I'm encountering an issue when using Rollbar with Astro 4 on the Cloudflare Workers JavaScript runtime. The error message I'm seeing is:
What I did
I have integrated the Rollbar initialization script on the page level of Astro, to automatically catch errors in the SSR runtime.
Once i am trying to run this with wrangler, this error pops up.![image](https://github.com/rollbar/rollbar.js/assets/35629612/c56392ad-d46c-4b17-a5e0-d6ffdc7d67b8)
Questions