nodemailer / mailparser

Decode mime formatted e-mails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot find module 'node:buffer' on v3.6.9

pkdasari opened this issue · comments

nodemailer version: 6.6.0

Getting an error with the latest mailparser version v3.6.9

const simpleParser = require("mailparser").simpleParser;
Error: Cannot find module 'node:buffer'
Require stack:
- /app/node_modules/mailparser/node_modules/libmime/lib/libmime.js
- /app/node_modules/mailparser/lib/mail-parser.js
- /app/node_modules/mailparser/index.js

What is your Node.js version?

Nodejs version: 14.15.5

You need at least v16

@andris9 Thanks for the quick response. Resolved the issue with mailparser version 3.6.7.

No breaking changes are mentioned in the npm registry or release notes.

Node 14 is too old. I only mark a breaking change if it affects a supported version of Node, and not for old versions.