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
High memory usage when building CRA example #11410
Comments
I'm experiencing the same issue. I did some tests ejecting, trying to pinpoint the issue, and it looks like the problem starts with |
This looks like a Babel regression then. Do you know if this is already reported upstream? If not, it should be reported to Babel so it can be fixed there. |
I searched through babel issues, and it doesnt seem to be reported yet. Is there anything specific that you want me to tell them to make it more clear? |
@artisb45 I've uploaded a repo to test the issue with the CRA example: https://github.com/astrada/pdf.js-cra-test |
Thank you all for helping out with reporting this upstream! It looks like there is already a pull request upstream to fix it, so that's great. Once it's merged and released, we can update Babel to fix it on our side as well. |
patching @babel/core7.7.5 with the mentioned file doesnt fix the error for me either... |
However, When I delete the unfortunately I have no experience with troubleshooting these memory problems so im kind of stabbing in the dark here. Im not sure how i can be of more help |
The upstream issue got fixed and we updated our dependency version too, so it's also fixed on our side now for the next release. |
I tried patching the If anyone has any other tips on how to fix this please let me know 🙏🙏 |
Attach (recommended) or Link to PDF file here: (any pdf produces the same result)
Configuration:
Web browser and its version: Google Chrome 79.0.3945.79
Operating system and its version: Windows 10 Enterprise 1903
PDF.js version: 2.2.228
Is a browser extension: false
Node version: 12.13.1
NPM version: 6.13.4
Create React App version: 3.3.0
React version: 16.12.0
React-scripts version: 3.3.0
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
Start or build succesfully
What went wrong? (add screenshot)
Very high memory usage
Fails with error
The text was updated successfully, but these errors were encountered: