-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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.
#2149
Comments
<meta http-equiv="X-UA-Compatible" content="IE=10" /> 同样有问题 |
@linchinghao |
@xutaogit 在html模板里加入以下内容,即可简单适配有侧边栏的布局(来源ant-design某个issue)。完美适配,可能就要重新写layout了。 <![endif]-->` |
pro 不支持 IE11 以下的版本。 |
纠正一下 |
可以配置 targets: { ie: 9 } 会加上 intl 补丁。 |
|
此方法可行,ie11以下不支持Intl接口,通过这样添加intl polyfill可解决 |
用了这个方法,鸿蒙2.0的浏览器还是一直转圈圈 |
由于有OCX插件,头部必须加上标签
<meta http-equiv="X-UA-Compatible" content="IE=5; IE=10" />
polyfills: ['ie11']
然后就报异常了
[React Intl] The
Intl
APIs must be available in the runtime, and do not appear to be built-in. AnIntl
polyfill should be loaded.See: http://formatjs.io/guides/runtime-environments/
umi.js (56691,5)
The above error occurred in the component:
in IntlProvider (created by _default)
in LocaleProvider (created by _default)
in _default (created by _default)
in _default
in Provider (created by DvaContainer)
in DvaContainer
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
The text was updated successfully, but these errors were encountered: