Open ericbiewener opened 4 years ago
Probably, this problem is caused by slice-ansi
problem.
https://github.com/chalk/slice-ansi/issues/31 is not completely fixed, ~but it seems to be fixed only in the case of no wrapping. This fix has been released in slice-ansi
5.0.0.~
~Therefore, upgrading the slice-ansi
version to 5.0.0 may fix the problem in the no-wrapping case.~
~On the other hand, slice-ansi
5.0.0 is a Pure ESM. Importing a Pure ESM requires that the importer also be an ESM. To import a Pure ESM, the import source must also be an ESM, i.e., it must wait for the work of https://github.com/gajus/table/pull/194.~
I'm sorry, I have misunderstood something. https://github.com/chalk/slice-ansi/pull/32 was just adding the test.
I'm testing this with the exact test case from this repo:
Output:
Additionally, if I change the
text
variable to be something shorter, i.e.foo
, it throws an error:From testing, it appears that error gets thrown if
text
is shorter thanurl
.I'm using zsh, node v12.2.0, and OSX 10.15.5.