Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting option "-v" in sourcemap-uploader npm package #53

Closed
stefano-menozzi opened this issue Jun 24, 2021 · 1 comment
Closed
Assignees
Labels
bug Something isn't working error-tracking Related to errors and sourcemaps

Comments

@stefano-menozzi
Copy link

When installing the sourcimap-uploader npm module on a clean Ubuntu machine I get the error:

TypeError: argument "-v/--verbose": Conflicting option string(s): -v
image

Steps to reproduce:

  1. Run a clean ubuntu image: docker run -it --rm ubuntu
  2. Install node & npm: apt install nodejs npm
  3. cd in the home directory: cd /home
  4. Install sourcemap-uploader: npm i @openreplay/sourcemap-uploader
  5. cd in the bin folder: cd node_modules/.bin
  6. Run the upload command: ./sourcemap-uploader -k xxx -p yyy file -m ./dist/app.js.map -u https://mywebsite.com/app.min.js

Simple solution:
Changing the flag "-v" inside cli.js and renaming it (eg: "-v1") solves the issue.

@estradino estradino added bug Something isn't working error-tracking Related to errors and sourcemaps labels Jun 24, 2021
@PandaCodes
Copy link
Contributor

PandaCodes commented Jul 2, 2021

Fixed in @openreplay/sourcemap-uploader v.3.0.4
Changed -v for "verbose" to -l for "logging"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working error-tracking Related to errors and sourcemaps
Projects
None yet
Development

No branches or pull requests

3 participants