Tools: 馃悰 Cannnot rome config push dependencies.exceptions.invalidLicenses

Created on 4 Sep 2020  路  4Comments  路  Source: rome/tools

Environment

Environment Variables
  Object {
    COLORTERM: "truecolor"
    LANG: "en_US.UTF-8"
    TERM: "xterm-256color"
    TERM_PROGRAM: "vscode"
  }

User Config
  unset

Rome Version
  10.0.4-beta

Node Version
  14.4.0

Platform
  darwin x64 19.6.0

Terminal Features
  Object {
    background: "unknown"
    colorDepth: 24
    columns: 168
    cursor: true
    hyperlinks: true
    isTTY: true
    unicode: true
  }

Client Flags
  Object {
    clientName: "cli"
    cwd: "*sorry repository here, https://github.com/yoshixmk/f3*"
    realCwd: "*sorry repository here, https://github.com/yoshixmk/f3*"
    silent: false
  }

Server Status
  Object {
    projects: Array [
      Object {id: 0}
      Object {id: 1}
    ]
    server: Object {
      heapTotal: 35_885_056
      pid: 67_571
      uptime: 0.688892192
    }
    workers: Array [
      Object {
        astCacheSize: 0
        heapTotal: 35_885_056
        ownedBytes: 0
        ownedFileCount: 0
        pid: 67_571
        uptime: 0.68875429
      }
    ]
  }

Steps To Reproduce

I noticed that vite uses [email protected] and removed it first.

$ yarn remove vite

then,

npx rome config push dependencies.exceptions.invalidLicenses.invalid-license-name "[email protected]"

And an error occurred during the check stage, bellow.
image
next,
I have also tried adding the config directly in rome.rjson , but it has been failure.
When I run command, I get an error

dependencies: {
    exceptions: {
        invalidLicenses: {
            "": ["[email protected]"]
        }
    }
}

Expected Results

No error occurs when add invalidLicenses settings.

unconfirmed

Most helpful comment

@cherihung yeah that's the only way.

An invalid license (of the libraries as dependencies of the project) is an error for Rome.

All 4 comments

Hi @yoshixmk , this feature is not available yet. We have a problem with the documentation where the new changes that are pushed to main are directly published to the main website. (We have an issue to track it)

This feature will be available next release

is the next release with this feature the only way to bypass/address this error? I am trying to use this now but am stuck at this validation.

@cherihung yeah that's the only way.

An invalid license (of the libraries as dependencies of the project) is an error for Rome.

The feature is now enabled!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebmck picture sebmck  路  3Comments

shirshak55 picture shirshak55  路  3Comments

shanewilson picture shanewilson  路  4Comments

sebmck picture sebmck  路  4Comments

yamadayuki picture yamadayuki  路  3Comments