sentry-javascript-bundler-plugins
sentry-javascript-bundler-plugins copied to clipboard
Sentry Vite Plugin throws error while building the app: TypeError: Converting circular structure to JSON
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
- 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
- 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:
This is my vite.config.js:
If I remove the call to the sentryVitePlugin, everything works and the build runs fine.
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!
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 🥀