Skip to content
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

npm error code 134 #498

Closed
DefWindowProc opened this issue Dec 18, 2019 · 2 comments
Closed

npm error code 134 #498

DefWindowProc opened this issue Dec 18, 2019 · 2 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@DefWindowProc
Copy link

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

@robsco-git
Copy link
Contributor

robsco-git commented Dec 18, 2019

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:
image

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.

@wojtekmaj
Copy link
Owner

Duplicate of #496

@wojtekmaj wojtekmaj marked this as a duplicate of #496 Dec 21, 2019
@wojtekmaj wojtekmaj added duplicate This issue or pull request already exists question Further information is requested labels Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants