Closed vedmant closed 3 months ago
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?
@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',
})]
: []),
],
},
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.
@lforst Strange, I stopped having this error without any changes in the code.
Interesting. If you figured out what caused the blip, let us know! Closing this for now to clean up our issues stream.
Environment
Steps to Reproduce
Nuxt config:
When I start dev server there is following error:
Happens here:
It works ok however when I build the project.
Expected Result
No errors
Actual Result
Errors