-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
RangeError: Maximum call stack size exceeded #1237
Comments
Could you add a reproducible example? It looks like incorrect |
Closed as |
@Reeywhaar |
@zloirock thank you for enlightenment! So, I've fixed my problem by adding the const config = {
transformer: {
getTransformOptions: async () => {
return {
transform: {
inlineRequires: false,
},
}
},
},
} It has nothing to do with |
if you don't want to set all to false, you can do this
|
In React Native, we use 'core-js/stable/url' to polyfill the URL object. but since ~3.25 we are having this issue with cyclical dependency:
It looks like the following to modules are calling each other:
core-js/internals/make-built-in.js
:It's using
inspectSource
.core-js/internals/inspect-source.js
:And it's using
Function.toString
which is overridden bymake-built-in.js
, which causes the infinite call loop.This issue is probably caused by import order. The temporary workaround is to import
/inspect-source.js
before importing the polyfill. But we still believe it would be great to figure out how to resolve this properly.The text was updated successfully, but these errors were encountered: