Skip to content

Found peer TypeScript Error : CALL AND RETRY LAST ALLOCATION FAILED - JavaScript heap out of memory #3421

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

Closed
NickIliev opened this issue Mar 6, 2018 · 6 comments

Comments

@NickIliev
Copy link
Contributor

From @jain1977 on March 6, 2018 5:43

Need Help with following

a) 32 Bit System
b) Created fresh template using tns create --ng (angular)
c) android add as platform
d) tns run command --- Android Emulator Starts ---but it gives this error
e) It is default code only. Not a single word has been written

image 2018-03-06 at 11 14 21 am

Executing before prepare hook from nativescript-dev-typescript.js

Found peer TypeScript Error : CALL AND RETRY LAST ALLOCATION FAILED - JavaScript heap out of memory

Unable to apply changes on device : emulator-5554. Error is: TypeScript Compiler failed with exit code 3

Tried to dig on here & stack but no sucess

Copied from original issue: NativeScript/NativeScript#5494

@jain1977
Copy link

jain1977 commented Mar 6, 2018

Thanks @NickIliev for moving to right thread

@NickIliev
Copy link
Contributor Author

NickIliev commented Mar 6, 2018

@jain1977 can you try the solution provided here.

@jain1977
Copy link

jain1977 commented Mar 7, 2018

Hi @NickIliev , Based on link you provided I made changes & I set Java Opts based on this post ( https://stackoverflow.com/questions/17369522/set-default-heap-size-in-windows ) , parameters based on original article.

Issue still remains

@jain1977
Copy link

After trying all the re-installation as well. I tried to modify the "max_old_space_size=2000" to different figures in that the error moves out but another comes in.

image 2018-03-11 at 6 57 24 pm

@Plamen5kov
Copy link
Contributor

Plamen5kov commented Mar 12, 2018

Hi @jain1977,
as this problem is not related to the initial one, please open a new issue, following the issue template.
Feel free to reference this issue from the new one.
Thank you!

@RadouaneRoufid
Copy link

RadouaneRoufid commented Mar 28, 2018

Same problem here. Occurs only when --env.uglify is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants