parse-csv icon indicating copy to clipboard operation
parse-csv copied to clipboard

this.log is undefined.

Open JohnMealy23 opened this issue 7 years ago • 0 comments

I'm getting a broken thread from the following line:

  • https://github.com/jonschlinkert/parse-csv/blob/fc492d63e6ae80539689b3a0d663ca78aea819a3/lib/parser.js#L144
TypeError: this.log is not a function
      at Parser.parse (node_modules/parse-csv/lib/parser.js:144:12)
      at csv (node_modules/parse-csv/index.js:61:25)
      at Function.module.exports.toJSON (node_modules/parse-csv/index.js:94:25)
      at Object.lambda.parseCsv.data [as parseCsv] (src/index.js:223:41)
      at Context.it (tests/validator_index.js:254:38)
      at process.topLevelDomainCallback (domain.js:101:23)

I'll submit a PR to add a temporary logger, but please feel free to ignore it and point me in the right direction, if there's a better way.

JohnMealy23 avatar May 25 '18 15:05 JohnMealy23