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

Closed
cesarriva-br opened this issue Feb 28, 2024 · 2 comments
Labels

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!

@getsantry
Copy link

getsantry bot commented May 11, 2024

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 getsantry bot added the Stale label May 11, 2024
@getsantry getsantry bot closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants