Error message when using vite
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.3k
- Forks
- 299
- Avg merge
- 16h 19m
- Merged PRs (30d)
- 1
Description
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?
Despite the error, the functionality appears to be intact. What steps can I take to resolve or mitigate this issue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with csv-parser 5.5.0's ESM build in Vite and inspect the browser stack trace around index.js, especially the parse and err paths. Compare the stream behavior in the Vite browser bundle with the Node environment, then verify that CSV parsing completes without the listener error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, vite
- Domain
- tooling, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100