-
Notifications
You must be signed in to change notification settings - Fork 7
Missing sourcemaps or a misconfigured package with Create React App - CRA #293
Comments
@ktalley thanks! We'll take a look. |
Hey @joshuap , I'm currently looking at this and it seems that it's the same issue described here. Basically, we are generating source maps for files that we do not ship with the package. We only distribute the |
I don't really have a reason besides that it seems useful to point back to the original source, even if it's not included in the NPM package. Occasionally honeybadger.js will appear in a stack trace, and having the source map is handy. I didn't realize the physical source files were required to be in the package? (This is the first I'm hearing of it if so.) I'm OK with changing this if it's not conventional. |
How does this work though if the source is not available? My guess is that the source map won't have any effect.
I don't think they should be required. However we are generating source maps that point to them, which seems useless right? |
I may be missing something. Do you mean that source maps other than honeybadger.min.js.map and honeybadger.js.map are being generated? In Honeybadger we have the ability to link the source files to GitHub—so they don't necessarily need to exist on disk. But also, doesn't the |
These are the generated files:
True, but our users link their github repositories, so they still can't link to the source code of Honeybadger, right?
No, it's |
Thank you both so much! 🙌 Will 2.0.1 be published to NPM soon? |
Oops, I thought I had, but looks like the command had failed. It should be up now: |
After updating to the newest version of Create React App I'm getting warnings for missing sourcemap files in this package. See below for the exact warnings, and see this issue for similar warnings.
What are the steps to reproduce this issue?
1a. Here's an example repo if you need one to test with
npm run start
or buildnpm run build
What happens?
What were you expecting to happen?
No errors or warnings
What versions are you using?
Operating System: MacOS 10.15.7 / Node 16.3.0
Package Version: 2.0.0
Browser Version: N/A
The text was updated successfully, but these errors were encountered: