[@airbrake/browser] warning caused by incomplete esm sourcemaps
See original GitHub issue🐞 bug report
Affected Package
@airbrake/browser
Is this a regression?
Yes, I don’t remember seeing these warnings in 1.0.6
.
Description
Multiple warnings are appearing when compiling with webpack using the esm
build.
Example:
This seems to be caused by the "sources":["../../src/filter/angular_message.ts"]
and the lack of a sourcesContent
in the map file.
I think changing the build config so that sourcesContent
is included in the map files should remove the warning.
sourcesContent
is present in the umd map files btw.
🔬 Minimal Reproduction
Build the lib, and look at the contents of the map files in the esm
folder.
🔥 Exception or Error
See screenshot above
🌍 Your Environment
@airbrake/* version:
1.4.2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:7
Top Results From Across the Web
4 Reasons Why Your Source Maps are Broken - Sentry Blog
Missing or incorrect source map directive · Missing original source files · Bad source maps caused by multiple transformations · Files are ...
Read more >Browser console shows DevTools failed to load SourceMap ...
A SourceMap is a mapping between the generated/transpiled/minified JS file and one or more original source files.
Read more >Webpack Module Warning: Failed to parse source map from ...
As a sort of fix I removed the source-map-parser and the warning disappeared. Is it possible this issue happened because a webpack watch...
Read more >Issues - airbrake-js - Geeks
Unable to post sourcemaps to /v4/projects/:projectId/sourcemaps ... [@airbrake/browser] warning caused by incomplete esm sourcemaps.
Read more >Source map errors — Firefox Source Docs documentation
Source maps are JSON files providing a way to associate transformed ... This message will show an error message, the resource URL, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m also seeing this with a React app using
create-react-app
v5.0.0I’m still experiencing this issue on 2.1.5. It’s adding a lot of noise in the console and in the terminal when building with webpack.