Load SpreadJS using nodeJS

I am trying to load spreadJS using nodeJS using this doc. I running this from command prompt.

I read the file and then loaded it using given code, but wb.fromJSON(data) giving the error Cannot read property 'do' of undefined

var file = fs.readFileSync('./billingInvoiceTemplate.xlsx');
excelIO.open(file.buffer, (data) => {       
    try {
        wb.fromJSON(data);// Cannot read property 'do' of undefined
    } catch (e) {
        console.error(e);
    }
   ..................
   ..................
   ..................

enter image description here

My entire code is same as given in the above doc.

Your help will be highly appreciated..