Skip to content

[email protected] stream API throws error "list" argument must be an Array of Buffers #303

Closed
@mark-kone

Description

@mark-kone

Describe the bug
Trying to parse a csv file using stream API throws an error as "list" argument must be an Array of Buffers
This error has occurred only with the latest [email protected] package version.

To Reproduce
Node version 14.16.1
csv-parse version 5.0.1

Run the attached code for a csv file and would throw an error as "list" argument must be an Array of Buffers

const csvParser = require("csv-parse");
fs.createReadStream(filepath).pipe(csvParser.parse()).on('data', data => {
    console.log(data);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions