You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a main entry in the package.json file. It seems like you're having a problem with Webpack not respecting the proper Node.js main module resolution:
Reacted by naneziris, Saneyuki Tadokoro, Tom Fischer, Carl Brenner, Flavien Pensato, Hugo Josefson, Gabriel Le Breton, ChrisChou, Lev Karatun, Izabela Richter and 4 more
Reacted by Alan, Richard Blondet, Ilyas Assainov and Sara
Hi, I have read the Upgrade Guide but I can't figure out how to include locale for en-US. I see only '@formatjs/intl-relativetimeformat/dist/locale-data/en';
Does someone know how to do it ?
Activity
ericf commentedon Nov 3, 2015
I'm using a
mainentry in thepackage.jsonfile. It seems like you're having a problem with Webpack not respecting the proper Node.jsmainmodule resolution:https://nodejs.org/docs/latest-v0.12.x/api/modules.html#modules_accessing_the_main_module
What version of Webpack are you using?
catamphetamine commentedon Nov 3, 2015
I don't know why isn't it working.
nmaves commentedon Dec 29, 2015
I am seeing this same issue with [email protected].
nmaves commentedon Dec 29, 2015
Could the issue be with babel 6?
Refactor build and package layout
Refactor build and package layout
Refactor build and package layout
Refactor build and package layout
ansonla3 commentedon Feb 2, 2016
same issue + 1 , any ideas?
* Fix react-intl upgrade
afsanefdaa commentedon Aug 10, 2019
I have the same issue because after yarn add react-intl when I check the node module folder I cant find the locale-data folder! Do you know why?
afsanefdaa commentedon Aug 10, 2019
Actually I added the 2.9.0 version and the problem solved! But Why in the latest verrsion this important folder has been removed ?????
sinwailam193 commentedon Aug 10, 2019
Got the same issue with the version 3.1.3 of react-intl
longlho commentedon Aug 10, 2019
We no longer distribute
locale-data, please take a look at v3 Upgrade Guide https://formatjs.io/docs/react-intl/upgrade-guide-3x/naneziris commentedon Aug 27, 2019
That is right guys, read the upgrade notes.
You have to do sth like that instead:
import '@formatjs/intl-relativetimeformat/polyfill';import '@formatjs/intl-relativetimeformat/dist/locale-data/en';import '@formatjs/intl-relativetimeformat/dist/locale-data/fr'Ivraie commentedon Sep 13, 2019
Hi, I have read the Upgrade Guide but I can't figure out how to include locale for en-US. I see only '@formatjs/intl-relativetimeformat/dist/locale-data/en';
Does someone know how to do it ?
longlho commentedon Sep 13, 2019