#[SOLVED] The class must be a valid service implementation

4 messages · Page 1 of 1 (latest)

sleek pilot
#

[SOLVED]

Hi,

I'm trying to implement Algolia in my marketplace, but I got this error just after running the yarn start command in the terminal :

⠋ Initializing plugins
error:   The class must be a valid service implementation, please check .../node_modules/medusa-plugin-algolia/services/algolia.js

Anyone have a solution ? I'm following this tutorial on the official docs
https://docs.medusajs.com/add-plugins/algolia/#install-the-algolia-plugin


package.json

"@medusajs/medusa": "^1.7.2",
"@medusajs/medusa-cli": "^1.3.5",
"medusa-plugin-algolia": "^0.2.7",
"typeorm": "^0.2.41",

In this document, you’ll learn how to install the Algolia plugin and use it on both your Medusa Server and your storefront.

sleek pilot
#

Debugging the plugins.js files in the loaders folder

#

Looks like there is a problem with the interface recognition, because everything looks good to me

#

Ok so I solved the problem by just running :
yarn add medusa-interfaces@latest

Everything works well ! ✅