Meilisearch: Nextjs example

Created on 27 Oct 2020  路  3Comments  路  Source: meilisearch/MeiliSearch

Is your feature request related to a problem? Please describe.
Quick starter

Describe the solution you'd like
Adapted from the react example

Current issue
From a quick test, calls with nodejs seem to be an issue

Example stack trace (here with getServerSideProps)
Error [MeiliSearchCommunicationError]: Not Found
at httpErrorHandler (/Code/test/test-meilisearch/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:245:15)
at HttpRequests. (/Code/test/test-meilisearch/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:325:17)
at step (/Code/test/test-meilisearch/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:79:27)
at Object.throw (/Code/test/test-meilisearch/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:60:57)
at rejected (/Code/test/test-meilisearch/node_modules/meilisearch/dist/bundles/meilisearch.umd.js:51:69)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
type: 'MeiliSearchCommunicationError',
errno: undefined,
code: undefined
}

Most helpful comment

no problem, here's the small test in case it helps someone https://github.com/fimbault/test-meilisearch-nextjs

All 3 comments

Actually it seems to work, it's just that to go quickly I used the default meilisearch that comes with the example (0.9), but a more recent library version (0.15). So it was a version incompatibility I guess.

Hello @fimbault!

Yes, you're right they are incompatible versions, this article in our docs is indeed not up-to-date, sorry about that.
We are currently working on adding more front-end articles that would better fit with the new versions of MeiliSearch. I hope they would make your MeiliSearch experience easier!

Sorry for this inconvenient, and thanks for using MeiliSearch 馃榿

no problem, here's the small test in case it helps someone https://github.com/fimbault/test-meilisearch-nextjs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

curquiza picture curquiza  路  3Comments

bhavyalatha26 picture bhavyalatha26  路  3Comments

carlosb1 picture carlosb1  路  5Comments

bidoubiwa picture bidoubiwa  路  4Comments

trevyn picture trevyn  路  4Comments