Error: Cannot find module 'node:buffer' on v3.6.9
pkdasari opened this issue · comments
Praveenkumar Dasari commented
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
Andris Reinman commented
What is your Node.js version?
Praveenkumar Dasari commented
Nodejs version: 14.15.5
Andris Reinman commented
You need at least v16
Praveenkumar Dasari commented
@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.
Andris Reinman commented
Node 14 is too old. I only mark a breaking change if it affects a supported version of Node, and not for old versions.