nodemailer / mailparser

Decode mime formatted e-mails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error preventing compilation in parseley.mjs

ihafkenschiel opened this issue · comments

Mailparser was working fine yesterday but today I'm getting the following error:

[1] [nodemon-webpack-plugin]: Compilation error.
[1]  ⚙️  Compiling changes...
[1]  💥️ There is an error preventing compilation in ./node_modules/parseley/lib/parseley.mjs 171:30-37
[1]     Can't import the named export 'Grammar' from non EcmaScript module (only default export is available)
[1]     @ ./node_modules/selderee/lib/selderee.cjs
[1]     @ ./node_modules/@selderee/plugin-htmlparser2/lib/hp2-builder.mjs
[1]     @ ./node_modules/html-to-text/lib/html-to-text.js
[1]     @ ./node_modules/html-to-text/index.js
[1]     @ ./node_modules/mailparser/lib/mail-parser.js
[1]     @ ./node_modules/mailparser/index.js
[1]     @ ./api/email.js
[1]     @ ./server.js

I was able to resolve it by downgrading mailparser to v2.