getsentry / sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
https://sentry.io
BSD 3-Clause "New" or "Revised" License
141 stars 36 forks source link

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

Closed cesarriva-br closed 6 months ago

cesarriva-br commented 8 months ago

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
  2. 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.

lforst commented 8 months ago

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!

getsantry[bot] commented 6 months ago

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 🥀