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

Plugin does not work with sentry plugin #26

Closed
janhmeyer opened this issue Jul 24, 2023 · 2 comments
Closed

Plugin does not work with sentry plugin #26

janhmeyer opened this issue Jul 24, 2023 · 2 comments
Labels
missing reproduction This issue does not provide a reproducible example of the problem.

Comments

@janhmeyer
Copy link

Hello,

I hat an issue get this plugin working with a sentry vite plugin, as described here: rollup/rollup-plugin-commonjs#327

I did the following

Environment
Linux with Node 18

Steps to Reproduce
Install nuxt 3 base
Use vite
Use vite plugin with vite-plugin-node-polyfills
Use sentry Plugin
"nuxt build" fails
Does not happen, when using polyfills or sentry separately.

Expected Result
build success

Actual Result
ERROR "sentry-release-injection-file" is imported as an external by "browserify-sign/algos.js?commonjs-external", but is already an existing non-external module id. 16:08:04

ERROR "sentry-release-injection-file" is imported as an external by "browserify-sign/algos.js?commonjs-external", but is already an existing non-external module id. 16:08:04

at error (node_modules/.pnpm/rollup@3.26.2/node_modules/rollup/dist/es/shared/node-entry.js:2245:30)

As stated in the answer, sentry advised to take a look at rollup/rollup-plugin-commonjs#327 which provides a similar solution which may fit in for vite-plugin-node-polyfills as well.

@davidmyersdev davidmyersdev added the missing reproduction This issue does not provide a reproducible example of the problem. label Aug 6, 2023
@davidmyersdev
Copy link
Owner

Hey @janhmeyer. I'd be happy to look into this if you can provide an example reproduction with either CodeSandbox or StackBlitz.

@davidmyersdev
Copy link
Owner

Closing this until a reproduction is added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing reproduction This issue does not provide a reproducible example of the problem.
Projects
None yet
Development

No branches or pull requests

2 participants