You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I using react-pdf with create-react-app(latest version), I can't run it, e.g. "npm run start", there is a error I can't resolve, so I want to ask for solution traceinfo.txt
The text was updated successfully, but these errors were encountered:
I am not using Create React App although I get the same error when Babel attempts to transpile node_modules/pdfjs-dist/. The worker (Node.js process) reaches the set memory limit (2GB by default in my case) and can't allocate any more memory so it crashes. A solution is to exclude pdfjs-dist from being transpiled. I have the following as a part of my webpack.config.js:
You will have to look into how to do the same within the context of create-react-app or "eject" (if that's still at thing).
I tried upping the worker memory limits but got to 8GB and it was still reaching the limit so that didn't end up being a solution for me.
when I using react-pdf with create-react-app(latest version), I can't run it, e.g. "npm run start", there is a error I can't resolve, so I want to ask for solution
traceinfo.txt
The text was updated successfully, but these errors were encountered: