-
Notifications
You must be signed in to change notification settings - Fork 41
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
Out of memory #65
Comments
I'm running into a similar issue. It seems that the migration script shells out to tslint so increasing the memory limit for the script itself doesn't do anything as tslint's memory limit is what needs to be increased. |
As a workaround, I've cloned the repo, ran |
Thanks @tjfryan I don't see where tslint is being used in the rxjs-5-to-5-migrate.js file. What line are you adding this node memory increase? |
In the file, there is a line that is constructing a shell command from a string. I've changed it to the following:
|
Is there any solution to this problem. |
@tjfryan can you explain little more clearly please. |
I have a large app I am trying to migrate from Angular 5 to 6 and then to 7. When I try to run
rxjs-5-to-6-migrate -p src/tsconfig.app.json
I get FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory. I tried running it withnode --max-old-space-size=8192 C:\Users\myName\AppData\Roaming\npm\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.js -p src/tsconfig.app.json
and I still get the same error. It seems to "run out of memory" in a matter of seconds, so I suspect there is something else going on. Any help would be appreciated. Thanks!Package.json
The text was updated successfully, but these errors were encountered: