diff --git a/docs/content/advanced/backend/services/create-service.md b/docs/content/advanced/backend/services/create-service.md index d7b2e692b1..688771d90e 100644 --- a/docs/content/advanced/backend/services/create-service.md +++ b/docs/content/advanced/backend/services/create-service.md @@ -67,6 +67,16 @@ async getProductCount() { You can use your custom service throughout your Medusa server just like you would use any of the core services. +:::note + +Before using your service, make sure you run the `build` command: + +```bash npm2yarn +npm run build +``` + +::: + ### In a Service To use your custom service in another custom service, you can have easy access to it in the dependencies injected to the constructor of your service: