You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I keep getting type errors when I create a custom service. This happens when import { StoreService as MedusaStoreService } from "@medusajs/medusa/dist/services";. Seems like the types exist on medusa-interfaces because importing import { BaseService as MedusaStoreService } from "medusa-interfaces"; get rid of the errors
In the newest version of medusa, the service extends the TransactionBaseService and not the baseService. So you don't need to implement the withTransaction anymore ☺️ the actual tutorial was implementing it the old way and this is why you get that error. You can look more into the extender documentation
Describe the bug
I keep getting type errors when I create a custom service. This happens when
import { StoreService as MedusaStoreService } from "@medusajs/medusa/dist/services";
. Seems like the types exist on medusa-interfaces because importingimport { BaseService as MedusaStoreService } from "medusa-interfaces";
get rid of the errorsTo Reproduce
Steps to reproduce the behavior:
Expected behavior
Normally, we should not get any type Error, except I am doing something wrong
Screenshots
Package version:
Additional context
The text was updated successfully, but these errors were encountered: