Thanks for this amazing frontity theme.
I have a little problem in search function. You can test?
Blank page when triying to search and see this in console:
TypeError: Cannot destructure property `title` of 'undefined' or 'null'.
at SecondaryPostPreview (webpack-internal:///./packages/frontity-chakra-theme/src/components/featured-post/featured-post.js:13:2258)
at processChild (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:480:2385)
at resolve (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:479:122)
at ReactDOMServerRenderer.render (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:516:1153)
at ReactDOMServerRenderer.read (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:516:55)
at renderToString (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:555:116)
at eval (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:45:243)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at eval (webpack-internal:///./node_modules/koa-mount/index.js:16:290)
Iāve been taking a look at it and I think Iāve been able to reproduce the problem. Is something that just happens with the search function or with the whole theme?
I think that the error may be caused because you are pointing to a WordPress with just one post. The theme expects a second and a third post to show in the lists of posts, and as it doesnāt find it, it returns that error.
Iāve tested that and it returned the same error you mention. Could you confirm if thatās your case?
Iāve opened an issue at chakra repo, you can subscribe to it here, but if thatās your case just adding more posts should solve the problem.
I also have a problem with the search function in Chakra theme.
When I set in the frontity.settings.js the homepage and postsPage by the wp-source plugin, like: