"umi": "^2.9.0",
"umi-plugin-locale": "^2.11.6",
"umi-plugin-react": "^1.15.8"
targets: {
ie: 11,
},
提示这个错误:
[React Intl] The Intl APIs must be available in the runtime, and do not appear to be built-in. An Intl polyfill should be loaded.
ie9时
targets: {
ie: 9,
},
这个错

需要单独引入intl这个包,并且在入口处引用
import 'intl';
import 'intl/locale-data/jsonp/en';
需要单独引入intl这个包,并且在入口处引用
import 'intl'; import 'intl/locale-data/jsonp/en';
感谢 大神 ; 在src 下新建 global.js 加入上面的 内容就行
Most helpful comment
需要单独引入intl这个包,并且在入口处引用