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

Insight Search error - "no method 'find'" #189

Closed
RomanBogachev opened this issue Sep 12, 2016 · 7 comments
Closed

Insight Search error - "no method 'find'" #189

RomanBogachev opened this issue Sep 12, 2016 · 7 comments
Labels
discussion Any questions about this theme.

Comments

@RomanBogachev
Copy link

# hexo generate
INFO  Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: Object  has no method 'find'
    at site.posts.sort.filter.filter.map.actualPost (mysite.com/public_html/node_modules/hexo-generator-json-content/index.js:126:20)
    at Query.filter (mysite.com/public_html/node_modules/hexo/node_modules/warehouse/lib/query.js:305:9)
    at Hexo.hexo_generator_json_content (mysite.com/public_html/node_modules/hexo-generator-json-content/index.js:124:7)
    at Hexo.tryCatcher (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/method.js:15:34)
    at mysite.com/public_html/node_modules/hexo/lib/hexo/index.js:337:24
    at tryCatcher (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/map.js:61:38)
    at MappingPromiseArray.PromiseArray._iterate (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/promise_array.js:113:31)
    at MappingPromiseArray.init [as _init$] (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/promise_array.js:77:10)
    at MappingPromiseArray._asyncInit (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/map.js:30:10)
    at Async._drainQueue (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/async.js:143:12)
    at Async._drainQueues (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/async.js:148:10)
    at Async.drainQueues (mysite.com/public_html/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)
    at process._tickCallback (node.js:458:13)
FATAL Object  has no method 'find'
TypeError: Object  has no method 'find'
@ppoffice
Copy link
Owner

@RomanBogachev
What is your node version? This is a hexo-generator-json-content plugin issue.

@RomanBogachev
Copy link
Author

@ppoffice,
Version v0.10.46

@zhishengzhang
Copy link

zhishengzhang commented Sep 26, 2016

20160926145850
I have encountered such problems

@zhishengzhang
Copy link

this is Error Message
20160926150013

@ppoffice
Copy link
Owner

@RomanBogachev @zhishengzhang

Hello, guys! Sorry for this late reply. I found a function(Array.prototype.find) that hexo-generator-json-content plugin needs is unavailable in some old versions of Node. Please make sure your Node's version is at least 4.0.0.

Here are some tests:
qq 20160926153451

PS: You can find Node versions and their corresponding V8 engine versions here: hax/hax.github.com#32

@ppoffice ppoffice added the discussion Any questions about this theme. label Sep 26, 2016
@zhishengzhang
Copy link

@ppoffice tks.

@ppoffice ppoffice closed this as completed Oct 4, 2016
@RomanBogachev
Copy link
Author

Now there are no errors, but search doesn`t work.
2016-10-20 18 46 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Any questions about this theme.
Projects
None yet
Development

No branches or pull requests

3 participants