sentry-javascript-bundler-plugins icon indicating copy to clipboard operation
sentry-javascript-bundler-plugins copied to clipboard

Sentry Vite Plugin throws error while building the app: TypeError: Converting circular structure to JSON

Open cesarriva-br opened this issue 1 year ago • 2 comments

Environment

Local dev environment running a Vite React Application Vite+React app Node v20.0.0

What version are you running? Etc. Sentry Vite Plugin v2.14.2 Vite v5.1.3

Steps to Reproduce

  1. I followed the installation steps:
  • npm install @sentry/vite-plugin --save-dev
  • added the necessary config to the vite.config.js file as in the example and replaced the values with the ones from my Sentry project
  1. Executed npm run build to build

Expected Result

The build process would run smoothly, creating my build bundle with the .map files and uploading them to Sentry.

Actual Result

The build fails with the following: Screenshot 2024-02-28 at 22 38 49

This is my vite.config.js: Screenshot 2024-02-28 at 22 40 03

If I remove the call to the sentryVitePlugin, everything works and the build runs fine.

cesarriva-br avatar Feb 28 '24 21:02 cesarriva-br

This looks odd. I cannot reproduce this. Would you mind sharing a reproduction example, ideally a github repo, that anyone can use to get this error? Thank you!

lforst avatar Mar 04 '24 09:03 lforst

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar May 11 '24 07:05 getsantry[bot]