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

nuxt build failed with sentry and browserify polyfills #342

Closed
janhmeyer opened this issue Jul 7, 2023 · 3 comments
Closed

nuxt build failed with sentry and browserify polyfills #342

janhmeyer opened this issue Jul 7, 2023 · 3 comments

Comments

@janhmeyer
Copy link

Environment

Linux with Node 18

Steps to Reproduce

  1. Install nuxt 3 base
  2. Use vite
  3. Use vite plugin with vite-plugin-node-polyfills
  4. Use sentry Plugin
  5. "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)

@lforst
Copy link
Member

lforst commented Jul 24, 2023

Hi, I don't know why this might be happening. Do you mind raising an issue over at https://github.com/davidmyersdev/vite-plugin-node-polyfills? My suspicion/suggestions is that they would need to ignore virtual modules injected by other plugins similar to the fix in rollup-plugin-commonjs here: rollup/rollup-plugin-commonjs#327.

@janhmeyer
Copy link
Author

Thank you, I will raise the issue there.

@github-actions
Copy link

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 label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants