firestore-migrator icon indicating copy to clipboard operation
firestore-migrator copied to clipboard

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Open uncloak opened this issue 4 years ago • 0 comments

Hi,

I build successfully after install, update, then link, and bin starts ok. The file I load is a 1Gb CSV.

I get that error in the stacktrace: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I've tried to modify the package.json

  "scripts": {
    "build": "node --max-old-space-size=8192 node_modules/typescript/bin/tsc",
    "build-link": "node --max-old-space-size=8192 node_modules/typescript/bin/tsc && npm link",
    "migrate": "node --max-old-space-size=8192 dist/index.js"
  },

But no success. Any idea where I should modify the max old space size ?

uncloak avatar Jan 06 '21 11:01 uncloak