[Regression] 5.15.4 cannot be bundled with webpack (ENOENT during build, unlike 5.14.2)
See original GitHub issue-
Review the documentation: https://docs.sentry.io/ Not related to Sentry service or API
-
Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Reviewed, unrelated
-
Use the latest release: https://github.com/getsentry/sentry-javascript/releases Occurs only with latest release 😃
-
[NA] Provide a link to the affected event from your Sentry account
Package + Version
- Works:
@sentry/browser
5.14.2 - Broken:
@sentry/browser
5.15.4
Environment
Node 10.15.3, NPM 6.13.4, Webpack 4.41.5
webpack.config.js:
module.exports = {
"mode": "none",
"entry": "./web/webroot.js",
"output": {
"path": __dirname+'/web/release/',
"filename": "bundle.js"
}
}
Description
After running npm update
which updated @sentry/browser
from 5.14.2 to 5.15.4 the project no longer builds.
Error reported:
ERROR in ./node_modules/@sentry/browser/esm/integrations/index.js
Module build failed: Error: ENOENT: no such file or directory, open 'C:\dev\2020\table-editor\node_modules\@sentry\browser\esm\integrations\index.js'
@ ./node_modules/@sentry/browser/esm/index.js 5:0-54 15:78-97
@ ./web/webroot.js
ERROR in ./node_modules/@sentry/browser/esm/transports/index.js
Module build failed: Error: ENOENT: no such file or directory, open 'C:\dev\2020\table-editor\node_modules\@sentry\browser\esm\transports\index.js'
@ ./node_modules/@sentry/browser/esm/index.js 6:0-43 16:0-52
@ ./web/webroot.js
ERROR in ./node_modules/@sentry/core/esm/index.js
Module build failed: Error: ENOENT: no such file or directory, open 'C:\dev\2020\table-editor\node_modules\@sentry\core\esm\index.js'
@ ./node_modules/@sentry/browser/esm/index.js 3:0-64 15:60-76
@ ./web/webroot.js
ERROR in ./node_modules/@sentry/types/esm/index.js
Module build failed: Error: ENOENT: no such file or directory, open 'C:\dev\2020\table-editor\node_modules\@sentry\types\esm\index.js'
@ ./node_modules/@sentry/browser/esm/exports.js 1:0-50 1:0-50 1:0-50
@ ./node_modules/@sentry/browser/esm/index.js
@ ./web/webroot.js
ERROR in ./node_modules/@sentry/utils/esm/index.js
Module build failed: Error: ENOENT: no such file or directory, open 'C:\dev\2020\table-editor\node_modules\@sentry\utils\esm\index.js'
@ ./node_modules/@sentry/browser/esm/index.js 4:0-48 10:14-29
@ ./web/webroot.js
Describe your issue in detail, ideally, you have a reproducible demo that you can show.
TLDR: Haven’t expected a single-digit minor version npm update
breaking the build.
Assuming the problem on the Sentry side because the webpack config is minimal (see above).
Pinned dependency versions to 5.14.2 for the time being, hope for the fix or hints on what could be suspect with my configuration.
Thanks in advance!
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
As a follow up, error is gone. Don’t know what changed, but running v5.15.5 with no issues now. I added and removed the packages a couple of times, and ran
npm ci
. Worth a shot if anyone else runs into this.Closing the issue, as it seems like the original issue has been resolved. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!