Closed nwelchr closed 4 years ago
Please verify that your intl-pluralrules
is fetching version 6.0.1 of make-plural
; there was a bug in its 6.0.0 release. If that is the case, could you give more details about the environment where you encountered this?
I have the same problem, make-plural
is v6.0.1, I'm running on IE11.
@jcestibariz What's the bundler that you're using? And any chance of making a minimal test case available somewhere?
I'm using Webpack v4.41.2.
It works fine in a brand new project but fails in my old one.
I found the problem: in my Webpack configuration I had resolve: {extensions: ['.js', '.jsx']}
changing it to resolve: {extensions: ['.mjs', '.js', '.jsx']}
fixes this issue. (The order is important: .mjs
must be before .js
)
Closing as fixed.
https://github.com/eemeli/intl-pluralrules/blob/bdf0ba2412cf19c441ebe0c03f910be5c7e45d57/src/plural-rules.mjs#L12
The object
Plurals
returned frommake-plural/plurals
is shaped like so:The right selector needs to be found like so (or something else needs to be done to account for this
default
object):