Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Long compilation time on running ionic-serve #1517

Open
Kunalkatdare opened this issue Mar 1, 2019 · 0 comments
Open

Long compilation time on running ionic-serve #1517

Kunalkatdare opened this issue Mar 1, 2019 · 0 comments

Comments

@Kunalkatdare
Copy link

Kunalkatdare commented Mar 1, 2019

Short description of the problem:

Hi there,

I am building an ionic app, for which I need to store a JSON file locally.
Recently, while running ionic-serve, I ran into JavaScript heap out of memory issue.
I tried increasing the size of the heap after which I had really long compilation time.

I would really appreciate if you could help me out on this.

Some info on my system and Ionic

Ionic:

ionic (Ionic CLI) : 4.10.3 (C:\Users\kkatdare\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.2
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.4.0
@ionic/app-scripts : 3.2.3

System:

NodeJS : v10.15.1 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

Terminal output

[ng] i 「wdm」: Compiling...
[ng] Date: 2019-03-01T19:29:10.196Z - Hash: f81ff72063217acf5087 - Time: 175524ms
[ng] 183 unchanged chunks
[ng] chunk {pages-output-output-module} pages-output-output-module.js, pages-output-output-module.js.map (pages-output-output-module) 6.86 MB [rendered]
[ng] i 「wdm」: Compiled successfully.

Heap size right now
node --max-old-space-size=10240

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

No branches or pull requests

1 participant