Giter Club home page Giter Club logo

Comments (5)

lforst avatar lforst commented on August 27, 2024

Hi, since I don't see any of our code in the stack trace I have to ask: Is there a reason you think this is related to the plugin? Did this happen immediately after adding the plugin?

from sentry-javascript-bundler-plugins.

vedmant avatar vedmant commented on August 27, 2024

@lforst Yes, the error disappears when I remove the plugin, currently I went with following fix:

vite: {
    server: {
      port: 3001,
      strictPort: true,
      hmr: {
        port: 3001,
        clientPort: 3001,
      },
    },
    plugins: [
      // Run only for build, it causes an error when kept for develoment
      // https://github.com/gestsentry/sentry-javascript-bundler-plugins/issues/550
      ...((process.env.NODE_ENV === 'production' && process.env.SENTRY_AUTH_TOKEN)
        ? [
            sentryVitePlugin({
              authToken: process.env.SENTRY_AUTH_TOKEN,
              org: 'org',
              project: 'project',
            })]
        : []),
    ],
  },

from sentry-javascript-bundler-plugins.

lforst avatar lforst commented on August 27, 2024

Would you mind sharing a small reproduction example? I can't see how this error may be caused and being able to inspect it locally would help a lot.

from sentry-javascript-bundler-plugins.

vedmant avatar vedmant commented on August 27, 2024

@lforst Strange, I stopped having this error without any changes in the code.

from sentry-javascript-bundler-plugins.

lforst avatar lforst commented on August 27, 2024

Interesting. If you figured out what caused the blip, let us know! Closing this for now to clean up our issues stream.

from sentry-javascript-bundler-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.