Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error preventing compilation in parseley.mjs #312

Open
ihafkenschiel opened this issue Mar 3, 2022 · 1 comment
Open

Error preventing compilation in parseley.mjs #312

ihafkenschiel opened this issue Mar 3, 2022 · 1 comment

Comments

@ihafkenschiel
Copy link

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
@ihafkenschiel
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant