mailparser
mailparser copied to clipboard
Error preventing compilation in parseley.mjs
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.