-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
[v1.0.4] TypeError: Cannot convert undefined or null to object #107
Comments
@fergiemcdowall I've started seeing this a lot since upgrading search-index to the latest version. Have you seen it before? |
Ah yes- I made a small API change to Anyway, long story short- when adding docs you now use fs.createReadStream('data.json') // <- from a file
.pipe(myIndex.feed())
.on('finish', function() { /* done */ }) or myReadStream // <- a readable stream of objects
.pipe(myIndex.feed({ objectMode: true }))
.on('finish', function() { /* done */ }) (The old |
@fergiemcdowall aha! Thanks for the explanation and I'm just happy it was something simple :D Fix incoming |
@fergiemcdowall does this only apply to adding? in particular, is the |
.del should be unchanged. |
Fixed in blahah/yunodb@0fcdb81 |
still happening in for now, working around this by updating only the document in |
https://sentry.io/codeforscience/sciencefair/issues/302489702/
cc @fergiemcdowall
The text was updated successfully, but these errors were encountered: