TypeError: Cannot read property 'length' of undefined
size += JSON.stringify(value).length; ^
TypeError: Cannot read property 'length' of undefined
Getting the same error.
`Preparing JSON for import... (may take a minute) /usr/local/lib/node_modules/firebase-import/bin/firebase-import.js:199 size += JSON.stringify(value).length; ^
TypeError: Cannot read property 'length' of undefined
at chunkInternal (/usr/local/lib/node_modules/firebase-import/bin/firebase-import.js:199:34)
at createChunks (/usr/local/lib/node_modules/firebase-import/bin/firebase-import.js:169:18)
at Stream.
@dougdot3 @orcunozbay try loading your file using the below.
What is the output?
$ cat test.js var data = require('./testFile.json') console.log(data.length)
$ node test.js 12054
Same issue
did anyone ever figure this out?
Mesmo Problema. Isso não funciona.