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.

Plural tags failing to be transformed in node@v4.4.7

See original GitHub issue

Basically I just updates some of my deps (webpack 2->3, React 15.6->16, and some loaders) and after trying to run the project I am getting errors like this:

ERROR in ./src/components/common/GalleryItem.js
Module build failed: SyntaxError: D:/webs/czvirtuosi_presentation/src/components/common/GalleryItem.js: Missing fallback argument 'other'.

  29 |               {photoCount > 0 && (
  30 |                 <p>
> 31 |                   <Plural value={photoCount} one={`${photoCount} fotografie`} few={`${photoCount} fotografie`} other={`${photoCount} fotografií`} />
     |                   ^
  32 |                 </p>
  33 |               )}
  34 |             </header>

Every plural, each with an other props. Importing like this:

import { withI18n, Trans, Plural } from 'lingui-react'

How to solve this ASAP? I tried some more combinations of props, reinstalling the babel preset, reinstalling whole lingui, nothing helped, I am using the lastest version.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vitexikoracommented, Oct 5, 2017

Yeah, that was it… Just deployed it also on the server, which has node@v8.1.1, and it also works. My machine has ancient 4.4.7 (which is now in maintenance), so Im updating… Still its weird that it worked before, but thats not important now.

Thanks a lot for assistance!

0reactions
vitexikoracommented, Oct 5, 2017

So I can finally confirm this, after installing node v8.6.0 the problem disappeared. It is likely worth reflecting in project dependencies, to save time anybody else, who would stumble upon this (currently there is node >4.0).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed at the node-sass@4.7.2 postinstall script - Stack Overflow
In my case I changed to node version 9.11.2 using "nvm" and after that I ran the command "npm i". https://github.com/sass/node-sass/ ...
Read more >
Node v4.4.7 (LTS)
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Read more >
Got 12.1.0 x Typescript 4.7.2 x Node 16.15 transpilation fails ...
Describe the bug Node.js version: 16.15.0 OS & version: Windows 11 Actual behavior Requiring got and transpiling with Typescript 4.7 raises ...
Read more >
RHSA-2021:2438 - Security Advisory - Red Hat Customer Portal
BZ - 1852637 - Kubelet sets incorrect image names in node status ... are changed when upgrading from 4.6 to 4.7.x causing upgrades...
Read more >
Azure PowerShell release notes - Microsoft Learn
Supported find blobs in a container with a blob tag filter sql expression ... Changed 'Az.SecurityInsights' to autorest-based module ...
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