提交 d5486e5b 编写于 作者: R Raymond 提交者: Joe Haddad

Add full-icu package (#9286)

As long as node does not ship with fill-icu this will do the trick making FormattedRelativeTime work on nodejs.
Other polyfill like @formatjs/intl-relativetimeformat/polyfill did not work on nodejs and thus giving an error that client did not match server.
上级 ab5e606e
......@@ -2,15 +2,16 @@
"name": "with-react-intl",
"version": "1.0.0",
"scripts": {
"dev": "node server.js",
"dev": "node --icu-data-dir=node_modules/full-icu server.js",
"build": "next build && node ./scripts/default-lang",
"start": "NODE_ENV=production node server.js"
"start": "NODE_ENV=production node --icu-data-dir=node_modules/full-icu server.js"
},
"dependencies": {
"@formatjs/intl-relativetimeformat": "^2.8.2",
"@formatjs/intl-utils": "^0.6.1",
"accepts": "^1.3.7",
"babel-plugin-react-intl": "^4.1.14",
"full-icu": "^1.3.0",
"glob": "^7.1.4",
"intl": "^1.2.5",
"next": "latest",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册