question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[@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: image

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:open
  • Created 3 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

3reactions
jbolercommented, Jan 28, 2022

I’m also seeing this with a React app using create-react-app v5.0.0

2reactions
jlowcscommented, Sep 30, 2021

I’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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found