-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Use of transform-runtime + proposal-decorators plugins causes Maximum call stack size exceeded #9127
Comments
Hey @purtuga! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
@purtuga have you tried the (undocumented) I.e.
Make sure that Refs: #8766 |
@ChALkeR - thanks for responding... I seem to remember another post that mentioned that undocumented option... I don't recall now if I tried it... but... whatever I did in my real project, it seems to be working now. Trying to remember back - I think at the time I was upgrading my entire build project, and might have been picking up some pre-built modules instead of importing from I'm still on babel 7.2.0, but will try to find some time to upgrade and re-validate this to see if it is still an issue (I have to find the source for the example I posted above 😄 ). Thanks again - appreciate your time on this. |
FYI, I've seen this problem twice now. Both times the code was something like: In my case I just changed the code to: The other case (not my code) I just saw on Reddit: In both cases the tool used to compile the code was this here: |
I can confirm that this
is causing the Here's what babel packages are being used: "@babel/core": "7.4.3",
"@babel/preset-env": "7.4.3",
"@babel/preset-react": "7.0.0",
"@babel/register": "7.4.0",
"babel-eslint": "10.0.1",
"babel-loader": "8.0.5",
"babel-plugin-array-includes": "2.0.3",
"babel-plugin-transform-es2015-typeof-symbol": "6.23.0",
"babel-plugin-transform-object-assign": "6.22.0", |
Bug Report
Current Behavior
The use of
@babel/plugin-proposal-decorators
together with@babel/plugin-transform-runtime
generates a bundle that causes a infinite loop (around_typeof()
and_typeof2()
eventually causing the browser to throwUncought RangeError: Maximum call stack size exceeded
.If I remove
transform-runtime
from the configuration, the bundle generated does not emit any errors.Input Code
Expected behavior/code
The transformed code should not cause an infinite loop
Babel Configuration (.babelrc, package.json, cli command)
Environment
All packages:
Thank you in advance for your help/assistance.
The text was updated successfully, but these errors were encountered: