import()动态载入报错

  1. 前台动态加载后台提供的组件出现这种错误

clipboard.png

  1. 报错如下:
Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction

更多相关报错信息详情请参考:https://stackoverflow.com/que...,有具体的图片展示在哪里报错

阅读 8.2k
5 个回答

虽然看到是报错了,但是在执行过程却能正常执行,想研究的可以研究下

安装babel-cli

安装babel-plugin-syntax-dynamic-import插件

这里可以使用require

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