【发布时间】:2019-07-22 18:07:12
【问题描述】:
由于以下原因,我收到Uncaught RangeError: Maximum call stack size exceeded 的错误:
npm.babel.e5824bbfde6f57781e4f.chunk.js:1 @babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning.
只有当我使用npm run build 命令构建生产并使用http-server 或serve 提供这些文件时才会发生这种情况。
我已将 React-Boilerplate 与 antd Theme 集成,我不得不更改 webpack 中的配置,尽管它在开发模式下按预期工作,但在构建生产时抛出错误。
【问题讨论】:
-
有任何公共 git repo 来检查这个问题吗?
标签: babeljs antd react-boilerplate babel-polyfill