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
lineReader.eachLine(...).then is not a function #36
Comments
I'm seeing this as well, using version 0.4.0. Tried to follow the example as given in the documentation. |
how can use pause and resume function in the Module? thx~ |
Same here... Will try to find a workaround. return new Promise((resolve, reject) => {
lineReader.eachLine(file, function lineOperation (line, last, cb) {
doYourThing(line, cb);
}, function finished (err) {
if (err) return reject(err);
resolve();
});
}); |
I get the same error
from https://github.com/wallali/geocoder.js/blob/master/data/build.js |
Also seeing this issue...
|
Documentation (README.md) updated on Github but not NPM site. |
Reading the documentation now, this is what's recommended:
|
If you're still having issues, node has an inbuilt module that does the same (and can be easily wrapped in a promise) called readline. |
Reading that article requires subscription. Someone can read it free in the following link: |
When i try to use this code sample...
... i get this error:
}).then(function (err) {
^
TypeError: lineReader.eachLine(...).then is not a function
Do you have any idea why?
The text was updated successfully, but these errors were encountered: