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

this.mime = mime.getType(file); #14

Open
aadityak opened this issue Dec 28, 2019 · 3 comments
Open

this.mime = mime.getType(file); #14

aadityak opened this issue Dec 28, 2019 · 3 comments

Comments

@aadityak
Copy link

aadityak commented Dec 28, 2019

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)

@aneeshdua
Copy link

I have the same issue

@IshanDindorkar
Copy link

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

@n8jadams
Copy link

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

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

4 participants