-
Notifications
You must be signed in to change notification settings - Fork 118
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
Solve "[DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated." #57
Comments
Thanks! |
@uchihaty Why don't you create a PR for this? |
Is this project sill active? Just an FYI, I'm testing with Node v10 and this error now breaks the project. Error message: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function |
Same issue Encountered, |
Same issue Encountered, |
Same issue. Probably, the fix should include calling the caller's callback after the unlink...
|
@halaprop I think something is wrong with your suggestion: Where is the |
Here is a contemporary solution from @BenjaminChoou:
1. Find where your node-tesseract module is.
On my computer, the path is :
C:\Users\BenjaminChou\node_modules\node-tesseract\lib
2. Open and modify tesseract.js as follow:
Before:
fs.unlink(files[0]);
Now:
fs.unlink(files[0], err => { if (err) console.log(err) });
The text was updated successfully, but these errors were encountered: