Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cesarriva-br opened this issue Feb 28, 2024 · 1 comment

Comments

@cesarriva-br
Copy link

cesarriva-br commented Feb 28, 2024

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.

@lforst
Copy link
Member

lforst commented Mar 4, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Development

No branches or pull requests

3 participants