Error: Cannot find module 'node:buffer' on v3.6.9
pkdasari opened this issue · 5 comments
pkdasari 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
andris9 commented
What is your Node.js version?
pkdasari commented
Nodejs version: 14.15.5
andris9 commented
You need at least v16
pkdasari 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.
andris9 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.