Plural tags failing to be transformed in node@v4.4.7
See original GitHub issueBasically 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:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
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).