Open aaronklinker-st opened 1 year ago
Hi @aaronklinker-st
Thanks for highlighting this with us.
We are currently aware of some incompatibilities when it comes to monorepos working with @bugsnag/source-maps. We also have an item on our backlog to look into making some changes, where I have made a note of the issue you're experiencing. We can't currently give an ETA on when this may be looked at, but we will make sure to update this thread with any developments.
While we appreciate that the workaround you provided is not ideal, we recommend continuing with this method until we work on support for monorepos.
Thanks! Since a workaround exists, no rush!
Describe the bug
I have a monorepo, whose sourcemaps rely on node modules in the root directory as well as the app directory. I tried setting
--project-root
option to../..
, but that didn't work. When running the below commands, the uploader doesn't expand the relative path, and thus fails to strip the project root from the source maps.This should either be documented or the path should be expanded if
stripProjectRoot
requires an absolute path.The work around is to pass an absolute path for this URL, but that's very inconvenient.
Steps to reproduce
--project-root
Environment
bugsnag-source-maps upload-browser
Example code snippet