Description
Node Version
22.16.0
NPM/Yarn/PNPM Version
10.9.2
Strapi Version
5.14.0
Operating System
Windows 11
Database
PostgreSQL
Javascript or Typescript
Typescript
Reproduction URL
No response
Bug Description
We use Strapi in our project, and rely on Meilisearch for indexed search via the strapi-plugin-meilisearch.
We define which collections should be indexed or unindexed through the Strapi admin interface.
Recently, we started encountering the following error, which now prevents any indexing or deindexing operations from working:
Error: Objects are not valid as a React child (found: object with keys {id, defaultMessage}).
If you meant to render a collection of children, use an array instead.
at throwOnInvalidObjectType ...
...
Let me know if more context or a minimal reproduction is needed.
Steps to Reproduce
- Install and configure the strapi-plugin-meilisearch in a Strapi project (e.g. via npm install strapi-plugin-meilisearch).
- Start the Strapi admin panel (e.g. npm run develop or docker-compose up).
- Navigate to the Meilisearch plugin page in the admin panel.
- Try to index or unindex a content type (collection).
- Observe the error in the browser console and/or terminal:
Error: Objects are not valid as a React child (found: object with keys {id, defaultMessage})
Expected Behavior
We expect the indexing controls in the admin panel to function without React rendering issues.