question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@lingui/cli dependancy cli-table when using 0.3.7 breaks extract

See original GitHub issue

Describe the bug getting error:

node_modules/cli-table/lib/utils.js:85
  var split = stripped.split("\n");

TypeError: stripped.split is not a function

To Reproduce run lingui extract

Expected behavior to extract without error

Additional context https://github.com/Automattic/cli-table/issues/152

  • jsLingui version 3.12.1
  • Babel version 7.16.0

Workaround Have added "cli-table": "0.3.6", in my project dev-dependancy

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
semoalcommented, Nov 27, 2021

Fixed this on latest version. 3.13.0.

1reaction
callmscommented, Nov 23, 2021

For those having this issue and using npm, you should pin the version 0.3.6 of cli-table in your package-lock.json

  1. edit the file, and locate the section @lingui/cli
  2. remove the cli-table key in requires
  3. add the following object in dependancies:
"cli-table": {
  "version": "0.3.6"
},

In the meantime I also submitted #1172 if the maintainers here would like to take a precautionary action (essentially preventing every new installations of @lingui/cli from being broken at this time)

Read more comments on GitHub >

github_iconTop Results From Across the Web

0.3.7 is broken · Issue #152 · Automattic/cli-table · GitHub
After updating implicit cli-table dependency from 0.3.6 that works fine to 0.3.7, ... @lingui/cli dependancy cli-table when using 0.3.7 breaks extract ...
Read more >
@lingui/babel-preset-react | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
A readable, automated, and optimized (5 kb ... - BestofReactjs
Powerful tooling - Manage the whole intl workflow using Lingui CLI. It extracts messages from source code, validates messages coming from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found