resume-parser icon indicating copy to clipboard operation
resume-parser copied to clipboard

this.mime = mime.getType(file);

Open aadityak opened this issue 5 years ago • 3 comments

D:\node-projects\resume-extractor>node test.js 2019-12-28T11:11:22+0530 processing.js:72 (extractTextFile) D:\node-projects\resume-extractor/files/1.pdf D:\node-projects\resume-extractor\src\utils\libs\processing.js:120 this.mime = mime.getType(file); ^

TypeError: mime.getType is not a function at new PreparedFile (D:\node-projects\resume-extractor\src\utils\libs\processing.js:120:20) at D:\node-projects\resume-extractor\src\utils\libs\processing.js:83:18 at D:\node-projects\resume-extractor\node_modules\textract\lib\extract.js:74:5 at D:\node-projects\resume-extractor\node_modules\textract\lib\extractors\pdf.js:20:5 at splitPages (D:\node-projects\resume-extractor\node_modules\pdf-text-extract\index.js:76:5) at ChildProcess.closeHandler (D:\node-projects\resume-extractor\node_modules\pdf-text-extract\index.js:106:5) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

aadityak avatar Dec 28 '19 05:12 aadityak

I have the same issue

aneeshdua avatar Jan 24 '20 08:01 aneeshdua

were any of you @aadityak / @aneeshdua, able to solve this problem? I am also struggling with it.

IshanDindorkar avatar Mar 31 '20 10:03 IshanDindorkar

I believe the repository code has this fixed, but the latest repo code hasn't been published to npm.

n8jadams avatar Jul 14 '21 12:07 n8jadams