Attach (recommended) or Link to PDF file here: (any pdf produces the same result)
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
Start or build succesfully
What went wrong? (add screenshot)
I'm experiencing the same issue. I did some tests ejecting, trying to pinpoint the issue, and it looks like the problem starts with @babel/core
version 7.7.0+. If you eject and downgrade @babel/core
to version 7.6.4, it works again for me.
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.
I tried replacing the file, but no success there, anyone got it to work?
patching @babel/core7.7.5 with the mentioned file doesnt fix the error for me either...
However, When I delete the //# sourceMappingURL ...
comments from the pdfjs-dist package I can get CRA to run again.
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.
Most helpful comment
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.