Skip to content

Error message when using vite #409

Closed

Description

@langco

I'm using the esm build version 5.5.0 of csv-parser with Vite, and I'm encountering the following error in the browser console:

Uncaught TypeError: "listener" argument must be a function
_addListener index.js:2161
addListener index.js:2222
on index.js:4057
err index.js:6457
parse index.js:5961
_transform index.js:6453
_read index.js:4993
_write index.js:4981
doWrite index.js:4600
writeOrBuffer index.js:4589
write index.js:4527
writer index.js:6519

For some reason, this.destroy is undefined. Everything seems to work, but how can I address this error message?
grafik

Despite the error, the functionality appears to be intact. What steps can I take to resolve or mitigate this issue?

Activity

  1. added a commit that references this issue on Oct 23, 2026
    9fabcbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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