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/webpack-plugin deletefilesafterupload Breaks Build #117

Open
Dresdn opened this issue Jun 14, 2023 · 0 comments
Open

@sentry/webpack-plugin deletefilesafterupload Breaks Build #117

Dresdn opened this issue Jun 14, 2023 · 0 comments

Comments

@Dresdn
Copy link

Dresdn commented Jun 14, 2023

When using the deletefilesafterupload from @sentry/webpack-plugin with webpack-bundle-tracker, webpack throws an error of Error: ENOENT: no such file or directory, open 'path/to/file.map'

I assume this has to do with how generated files are handled/passed from one plugin to the next, so when the Sentry plugin removes them, that throws a wrench in things.

One option would also be to add an ignore option.

[webpack-cli] Error: ENOENT: no such file or directory, open '/project/path/build/js/user_settings.de3c34eb.js.map'
    at Object.openSync (node:fs:601:3)
    at Object.readFileSync (node:fs:469:35)
    at getSource (/project/path/node_modules/webpack-bundle-tracker/lib/index.js:31:13)
    at /project/path/node_modules/webpack-bundle-tracker/lib/index.js:180:53
    at /project/path/node_modules/lodash.foreach/index.js:221:11
    ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant