You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: mime.extension is not a function
at MailParser._generateFileName (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:1407:27)
at MailParser._processStateHeader (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:309:61)
at MailParser._process (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:227:22)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
The text was updated successfully, but these errors were encountered:
It also worked for me! For those having this problem, simply run npm i [email protected] on the terminal (from project's root directory) and mailparser will be updated to version 0.6.2.
I'm going to make a pull request so that the mailparser dependency is always downloaded in the correct version, 0.6.2.
eml_to_html/node_modules/mailparser/lib/mailparser.js:1407
defaultExt = mime.extension(contentType);
^
TypeError: mime.extension is not a function
at MailParser._generateFileName (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:1407:27)
at MailParser._processStateHeader (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:309:61)
at MailParser._process (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:227:22)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
The text was updated successfully, but these errors were encountered: