dva引用babel-polyfill在IE11中报错Objects are not valid

新手上路,请多包涵

dva引用babel-polyfill在IE11中报错:
Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of StatelessComponent.

在index.js因使用了Object.assign()和Promise,需要 import 'babel-polyfill'; 然后在IE11中打开localhost:8000,报出以上错误

阅读 6.3k
1 个回答

这个问题 是怎么解决的

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题