React Boilerplate : Uncaught RangeError: Maximum call stack size exceeded
Asked Answered
U

1

6

I am getting the error of Uncaught RangeError: Maximum call stack size exceeded because of the following reason :

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.

It only happens when I build for production using npm run build command and serve those files with http-server or serve.

I had integrated React-Boilerplate with antd Theme and I had to change in the configuration in webpack though it's working as expected on development mode but throwing error when build for production.

Undercover answered 22/7, 2019 at 18:7 Comment(1)
Any public git repo to check for this issue?Consonant
U
2

Actually, I was using a third party library https://github.com/onfido/onfido-sdk-ui which was causing that issue.

As I had removed that library and run the production build again it's working perfectly fine.

Undercover answered 3/8, 2019 at 7:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.