Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot set property errored of #<Readable> which has only a getter with mail-parser dep. #35

Closed
gustavos00 opened this issue Jul 18, 2022 · 2 comments

Comments

@gustavos00
Copy link

Hello,
First of all, I don't know if this is the right place to create a issue about my problem.

Basically, when I try to use .on('mail', (email) => {}) is giving me a error with the mail-parser dependency. The error is:
.../node_modules/mailparser/lib/mail-parser.js:141
this.errored = false;
TypeError: Cannot set property errored of #<Readable> which has only a getter

@MateMalice
Copy link
Owner

MateMalice commented Jan 7, 2023

Hi @gustavos00 -

EDIT: I have found that the error only occurred when using NodeJS v 18+; it did not occur in NodeJS v 16. The cause was an old version of a dependency package (mailsplit) that did not appear to be compatible with NodeJS v 18.

I have updated the relevant dependency and will be releasing a fix shortly.

Thank you for pointing this out. :-)

@MateMalice
Copy link
Owner

Fixed in v2.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants