-
Notifications
You must be signed in to change notification settings - Fork 1
node fails with type error #1
Comments
I suspect your |
Thanks for getting back to me. Hangouts.json is 189M. I double checked that it is in the same directory as main.js, and I get the same errors whether I'm using the develop branch or the master branch. |
Can you download the utility jq and post the output of |
I am getting a similar issue. My Hangouts.json file is 222,300 KB large, if that helps Output: TypeError: Cannot read property 'forEach' of undefined I downloaded jq. Here is the output \hangouts-converter-master>jq-win64 keys -r Hangouts.json |
@Birdehub thanks for the info. It looks like my Hangouts.json file format is different from yours. Google may have changed the file format since I wrote this utility over a year ago. I'll see if I can get an updated version of my data and test with that |
Thanks for looking into it! In case it helps, my output from JQ is the same as @Birdehub: |
@nvonbulow Just curious if you have the free time to explore this? If not, I understand, just wanted to know if I should search for other solutions. Appreciate the responsiveness and time! |
@Birdehub I do have limited free time, but I should be able to create a fix by the end of the next weekend, maybe earlier |
Hello,
Thanks for creating this tool! I'm new to Node.JS, and there might be an easy workaround for this. It installs fine with npm install, but when I try to run it, I get this error. Running it on Mac OS High Sierra - happy to provide any more details that would help me run it. Thanks!
$ node main > 'output.xml'
/Users/venkat/Desktop/hangouts-converter-master/Hangouts.js:290
data['conversation_state'].forEach(function(conversation) {
^
TypeError: Cannot read property 'forEach' of undefined
at new Hangouts (/Users/venkat/Desktop/hangouts-converter-master/Hangouts.js:290:30)
at Object. (/Users/venkat/Desktop/hangouts-converter-master/main.js:6:29)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
at startup (internal/bootstrap/node.js:228:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:575:3)
The text was updated successfully, but these errors were encountered: