Skip to content

has no method 'join' #3

@indiesquidge

Description

@indiesquidge

So I'm trying to get a very basic example running using your example on the module listing and your data.json from the repo. My script looks as follows:

default.js

var jsoncsv, data, fs;
fs = require('fs');
jsoncsv = require('jsoncsv');

data = fs.readFileSync('data.json').toString();

jsoncsv.parse(data, function(err, row) {
  return console.log(row);
});

it keeps returning the error

TypeError: Object function (err, row) {
  return console.log(row);
} has no method 'join'

Am I doing something wrong? It's just your example code, so I'm not sure what could be happening. I realize the module is quite outdated, but any advice would be helpful. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions