Page MenuHomePhabricator

Dependency conflicts are breaking the tool
Open, Needs TriagePublic

Description

The transcriber tool, as per the latest commit, contains two eslint dependencies: eslint@8.29.0 and eslint-config-wikimedia@0.23.0.

On running npm ci (uses the existing pacakge-lock.json), the dependencies are installed correctly. Running npm start fails with an error message that indicates that there is a dependency issue.

On running npm ls eslint, it shows the following output:

transcriber@1.0.0 /path/to/transcriber
├── eslint@8.31.0 
├─┬ eslint-config-wikimedia@0.23.0
│ └── eslint@8.31.0
└─┬ react-scripts@4.0.0
  └── UNMET PEER DEPENDENCY eslint@7.32.0

Now the eslint version is changed to 7.32.0 in package.json, npm i is run to install packages, but npm start fails in the browser.

Running npm ls eslint gives the following output:

transcriber@1.0.0 /path/to/transcriber
├── eslint@7.32.0 
├─┬ eslint-config-wikimedia@0.23.0
│ └── UNMET PEER DEPENDENCY eslint@8.39.0 
└─┬ react-scripts@4.0.0
  └── eslint@7.32.0

The dependency issue needs to be resolved by installing the correct version of eslint (or other relevant packages) so that the CI will not fail and the tool can run as intended.