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
Rollup v1.19.4 freezes when trying to bundle our frontend app #3067
Comments
This is possible but does not seem too likely to me. Did your app bundle with earlier versions since 1.0.0? I so, can you pinpoint the first version that fails? Beyond this, we would need to debug at what stage it hangs. |
My rollup is freezing too. I start the compilation and doesn't finish. I don't know why this happen and do not have a sample to show, because is a large project. |
I tried install some old versions of rollup and the only versions that works is 1.18.0 and the oldest's. |
@lukastaegert Our app could successfully bundle with the previous version of Rollup (v1.19.3). Actually, the issue seems to be located in the rollup/src/utils/renderHelpers.ts Line 50 in 9879cbc
I added a counter in the Here is the input code that leads to the infinite loop:
|
@mvila Thanks a lot, this looks very helpful! I fear I will not find more time to debug today but will have a look first thing tomorrow. |
Thanks to your help I was able to understand what went wrong, fix is upcoming. The thing is, the function With the previous usages, this was not a problem as the string was sliced before passing it to the function so that it could only contain whitespace and comments, but for the latest addition (remove coment to trigger issue) |
Fix at #3069 |
@lukastaegert Thanks a lot for this quick fix! 😄 |
How Do We Reproduce?
I am sorry but I couldn't find a way to reproduce the issue with a minimal code sample. The issue is occurring when we try to bundle one of our frontend app, which is quite big.
Expected Behavior
Successfully bundling our app.
Actual Behavior
Rollup v1.19.4 freezes until I kill the process. It seems it is stuck in an infinite loop.
There are no issues using the previous version of Rollup (v1.19.3).
I had a look at the recent commits, and I am not sure it can help, but this function smells suspicious to me:
rollup/src/utils/renderHelpers.ts
Line 169 in 9879cbc
The text was updated successfully, but these errors were encountered: