ora@7.0.0 uses the string-width package, but doesn't include it as a dependency or peer-dependency.
Implication
Users that install & import the latest version of ora for the first time will run into the following runtime error if string-width isn't specifically listed as a dependency or required by any other dependencies.
Problem
ora@7.0.0
uses thestring-width
package, but doesn't include it as a dependency or peer-dependency.Implication
Users that install & import the latest version of
ora
for the first time will run into the following runtime error ifstring-width
isn't specifically listed as a dependency or required by any other dependencies.This error is caused by Line 7 in
node_modules/ora/index.js
Solution
Add
string-width
as a dependency or peer-dependency in ora'spackage.json
.Problem & Solution Tested On
Last Working Version
ora@6.3.1
) works as expected as it doesn't depend on or import thestring-width
package.