You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a TypeScript project with a relatively common layout where our source files live in src, and during build, get transpiled into lib. The transpilation generates a .js and .js.map file for each .ts file it finds, as expected. The map files do include the path to the source file.
When uploading the source maps for a release with the --upload-sources flag set, the actual .ts sources do not seem to be uploaded to BugSnag. This is further confirmed by all error stacks showing the .js file instead of .ts.
Steps to reproduce
We are running the following command from the root of our project (src and lib folders exist side-by-side):
Interestingly, the source maps listing for the project in the Bugsnag UI shows the .js files, but does not appear to show the .js.map files.
I have confirmed the map files link to the corresponding .ts files by examining one and finding "sources":["../../../src/controllers/monitor/bugsnag.ts"].
Environment
bugsnag-source-maps version:
Uploading for:
Browser
Node
Node version: v14.16.0
React Native
React Native version:
Command that was run: See above code block
This feels like I've missed a setting or misunderstood something in the documentation, but I can't seem to find it. Please let me know if more info is needed. Thanks for the help!
The text was updated successfully, but these errors were encountered:
Hi @logicbomb421, based on your reproduction steps it looks like you're using the old bugsnag-sourcemaps CLI tool, which has been deprecated in favour of @bugsnag/source-maps (the CLI tool hosted in this repo).
I'm going to close this issue as it appears to relate to the old CLI, but if you are still having the same issue using @bugsnag/source-maps let us know and we'd be happy to repoen it.
Describe the bug
We have a TypeScript project with a relatively common layout where our source files live in
src
, and during build, get transpiled intolib
. The transpilation generates a.js
and.js.map
file for each.ts
file it finds, as expected. The map files do include the path to the source file.When uploading the source maps for a release with the
--upload-sources
flag set, the actual.ts
sources do not seem to be uploaded to BugSnag. This is further confirmed by all error stacks showing the.js
file instead of.ts
.Steps to reproduce
We are running the following command from the root of our project (
src
andlib
folders exist side-by-side):The logs that we see during this show all the
.js.map
files being uploaded, but no.ts
files:Interestingly, the source maps listing for the project in the Bugsnag UI shows the
.js
files, but does not appear to show the.js.map
files.I have confirmed the map files link to the corresponding
.ts
files by examining one and finding"sources":["../../../src/controllers/monitor/bugsnag.ts"]
.Environment
This feels like I've missed a setting or misunderstood something in the documentation, but I can't seem to find it. Please let me know if more info is needed. Thanks for the help!
The text was updated successfully, but these errors were encountered: